-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
51 lines (50 loc) · 1 KB
/
docker-compose.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
version: '3.8'
services:
api:
container_name: tekken-league-api
networks:
- tekken-league-network
build:
context: .
target: dev
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}
ports:
- "3001:3001"
depends_on:
- db
- redis
volumes:
- ./:/node
- /node/node_modules
redis:
container_name: tekken-league-redis
image: redis
networks:
- tekken-league-network
ports:
- "6379:6379"
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