-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-ec2.yml
97 lines (90 loc) · 2.08 KB
/
docker-compose-ec2.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
version: '3.8'
services:
gateway:
build:
dockerfile: Dockerfile
context: ./gateway
target: production
restart: always
volumes:
- ./gateway:/var/www/gateway
command: npm run start:dev
env_file:
- .env
ports:
- ${API_GATEWAY_PORT}:${API_GATEWAY_PORT}
networks:
- backend
depends_on:
- media
- live
- token
- user
media:
build:
dockerfile: Dockerfile
context: ./media
target: production
restart: always
volumes:
- ./media:/var/www/media
command: npm run start:dev
env_file:
- .env
ports:
- ${MEDIA_SERVICE_PORT}:${MEDIA_SERVICE_PORT}
networks:
- backend
live:
build:
dockerfile: Dockerfile
context: ./live
target: production
restart: always
volumes:
- ./live:/var/www/live
command: npm run start:dev
env_file:
- .env
ports:
- ${LIVE_SERVICE_PORT}:${LIVE_SERVICE_PORT}
networks:
- backend
token:
build:
dockerfile: Dockerfile
context: ./token
target: production
restart: always
volumes:
- ./token:/var/www/token
command: npm run start:dev
env_file:
- .env
ports:
- ${TOKEN_SERVICE_PORT}:${TOKEN_SERVICE_PORT}
networks:
- backend
user:
build:
dockerfile: Dockerfile
context: ./user
target: production
restart: always
volumes:
- ./user:/var/www/user
command: npm run start:dev
env_file:
- .env
ports:
- ${USER_SERVICE_PORT}:${USER_SERVICE_PORT}
networks:
- backend
networks:
backend:
driver: bridge
volumes:
gateway:
media:
live:
token: