-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
61 lines (61 loc) ยท 1.62 KB
/
docker-compose.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
version : "3"
services:
nginx:
container_name: nginx
image: nginx
restart: always
ports:
- "80:80"
volumes:
- ./nginx/:/etc/nginx/conf.d/
db:
container_name: prolog-db
image: mysql
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
ports:
- "3306:3306"
volumes:
- ./mysqldata:/var/lib/mysql
restart: always
blue:
container_name: blue
image: fortune00/prolog
expose:
- "8080"
working_dir: /app
depends_on:
- db
restart: always
environment:
SPRING_DATASOURCE_URL: ${SPRING_DATASOURCE_URL}
SPRING_DATASOURCE_USERNAME: ${SPRING_DATASOURCE_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${SPRING_DATASOURCE_PASSWORD}
REDIRECT_URI: ${REDIRECT_URI}
JWT_ISSUER: ${JWT_ISSUER}
JWT_SECRET_KEY: ${JWT_SECRET_KEY}
CLIENT_ID: ${CLIENT_ID}
CLIENT_SECRET: ${CLIENT_SECRET}
AWS_ACCESS_KEY: ${AWS_ACCESS_KEY}
AWS_SECRET_KEY: ${AWS_SECRET_KEY}
green:
container_name: green
image: fortune00/prolog
expose:
- "8080"
working_dir: /app
depends_on:
- db
restart: always
environment:
SPRING_DATASOURCE_URL: ${SPRING_DATASOURCE_URL}
SPRING_DATASOURCE_USERNAME: ${SPRING_DATASOURCE_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${SPRING_DATASOURCE_PASSWORD}
REDIRECT_URI: ${REDIRECT_URI}
JWT_ISSUER: ${JWT_ISSUER}
JWT_SECRET_KEY: ${JWT_SECRET_KEY}
CLIENT_ID: ${CLIENT_ID}
CLIENT_SECRET: ${CLIENT_SECRET}
AWS_ACCESS_KEY: ${AWS_ACCESS_KEY}
AWS_SECRET_KEY: ${AWS_SECRET_KEY}