-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yaml
60 lines (59 loc) · 1.24 KB
/
docker-compose.prod.yaml
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
version: '3.8'
services:
frontend:
container_name: tekken-league-front
networks:
- tekken-league-network
image: tekken-front
ports:
- "80:80"
depends_on:
- api
- db
- redis
labels:
"com.centurylinklabs.watchtower.enable": true
api:
container_name: tekken-league-api
networks:
- tekken-league-network
image: tekken-back
env_file:
- .env
environment:
- DB_HOST=db
- DB_PORT=${DB_PORT}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_URL=${DB_URL_DOCKER}
- DB_PASSWORD=${DB_PASSWORD}
depends_on:
- db
- redis
volumes:
- ./:/node
- /node/node_modules
labels:
"com.centurylinklabs.watchtower.enable": true
redis:
container_name: tekken-league-redis
image: redis
networks:
- tekken-league-network
db:
container_name: tekken-league-db
image: postgres:13-alpine
networks:
- tekken-league-network
restart: always
ports:
- "5432:5432"
env_file:
- .env
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
networks:
tekken-league-network:
name: tekken-league-network