-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (39 loc) · 960 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (39 loc) · 960 Bytes
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
x-common-networks:
&networks
networks:
- net
x-common-restart:
&restart
restart: always
services:
backend:
<<: [ *restart, *networks ]
container_name: player-backend-api
hostname: backend-api
build:
context: .
dockerfile: ./Dockerfile
volumes:
- ./backend:/app
- ./supervisord.conf:/etc/supervisor/conf.d/supervisord.conf:rw
command: bash docker-entrypoint.sh
backend-redis:
<<: [ *restart, *networks ]
container_name: player-backend-redis
hostname: backend-redis
image: redis:latest
backend-nginx:
<<: [ *restart, *networks]
container_name: player-backend-nginx
image: nginx:latest
hostname: player-backend-nginx
ports:
- "7878:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./frontend:/src
networks:
net:
name: player-backend-net
driver: bridge