-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yc.yml
50 lines (47 loc) · 958 Bytes
/
docker-compose.yc.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
version: "3.8"
services:
redis:
container_name: redis
image: cr.yandex/mirror/redis:latest
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
expose:
- "6379"
networks:
- custom
backend:
container_name: backend
image: cr.yandex/crpt1bjls9dnr4c3c3bu/backend:latest
depends_on:
- redis
command: bash -c "start_server.production.sh"
expose:
- "8000"
networks:
- custom
nginx-backend:
container_name: nginx-backend
image: cr.yandex/crpt1bjls9dnr4c3c3bu/nginx-backend:latest
expose:
- 81
ports:
- "81:80"
restart: always
depends_on:
- backend
networks:
- custom
nginx-frontend:
container_name: nginx-frontend
image: cr.yandex/crpt1bjls9dnr4c3c3bu/nginx-frontend:latest
expose:
- 80
ports:
- "80:80"
restart: always
networks:
- custom
networks:
custom:
driver: bridge