-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose-app.yml
103 lines (99 loc) · 2.55 KB
/
compose-app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
services:
dku-nginx:
container_name: dku-nginx
image: nginx:1
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
environment:
VIRTUAL_HOST: dku-aegis-library-system.seongmin.dev
VIRTUAL_PORT: 80
networks:
- dku
depends_on:
- dku-blue-app-1
- dku-blue-app-2
- dku-green-app-1
- dku-green-app-2
dku-blue-app-1:
container_name: dku-app-blue-1
image: ghcr.io/ilcm96/dku-aegis-library-system:latest
restart: on-failure:5
environment:
COLOR: blue
PORT: ${PORT}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
MINIO_HOST: ${MINIO_HOST}
MINIO_PORT: ${MINIO_PORT}
MINIO_KEY: ${MINIO_KEY}
MINIO_SECRET: ${MINIO_SECRET}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
networks:
- dku
dku-blue-app-2:
container_name: dku-app-blue-2
image: ghcr.io/ilcm96/dku-aegis-library-system:latest
restart: on-failure:5
environment:
COLOR: blue
PORT: ${PORT}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
MINIO_HOST: ${MINIO_HOST}
MINIO_PORT: ${MINIO_PORT}
MINIO_KEY: ${MINIO_KEY}
MINIO_SECRET: ${MINIO_SECRET}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
networks:
- dku
dku-green-app-1:
container_name: dku-app-green-1
image: ghcr.io/ilcm96/dku-aegis-library-system:latest
restart: on-failure:5
environment:
COLOR: green
PORT: ${PORT}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
MINIO_HOST: ${MINIO_HOST}
MINIO_PORT: ${MINIO_PORT}
MINIO_KEY: ${MINIO_KEY}
MINIO_SECRET: ${MINIO_SECRET}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
networks:
- dku
dku-green-app-2:
container_name: dku-app-green-2
image: ghcr.io/ilcm96/dku-aegis-library-system:latest
restart: on-failure:5
environment:
COLOR: green
PORT: ${PORT}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
MINIO_HOST: ${MINIO_HOST}
MINIO_PORT: ${MINIO_PORT}
MINIO_KEY: ${MINIO_KEY}
MINIO_SECRET: ${MINIO_SECRET}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
networks:
- dku
networks:
dku:
external: true