-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
71 lines (66 loc) · 1.43 KB
/
docker-compose.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
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: sport-frontend
ports:
- "5056:3000"
environment:
- NODE_ENV=production
restart: unless-stopped
volumes:
- ./frontend/public/assets/data/:/app/public/assets/data/
networks:
- sportnetwork
backend:
build:
context: ./backend
dockerfile: Dockerfile
target: production
container_name: sport-backend
ports:
- "${APP_PORT}:${APP_PORT}"
env_file:
- .env
volumes:
- ./backend/keys:/app/keys
depends_on:
- db
networks:
- sportnetwork
db:
image: postgres:latest
container_name: sport-db
restart: always
environment:
POSTGRES_USER: ${PG_USER}
POSTGRES_PASSWORD: ${PG_PASSWORD}
POSTGRES_DB: ${PG_DATABASE}
volumes:
- sport_postgres_data:/var/lib/postgresql/data
ports:
- "${DB_PORT}:5432"
networks:
- sportnetwork
pgadmin:
image: dpage/pgadmin4
container_name: sport-pgadmin
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
ports:
- "${PGADMIN_PORT}:80"
depends_on:
- db
volumes:
- sport_pgadmin_data:/var/lib/pgadmin
networks:
- sportnetwork
volumes:
sport_postgres_data:
sport_pgadmin_data:
networks:
sportnetwork:
driver: bridge