-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.13 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
services:
postgres:
image: postgres:latest
container_name: lithium-db
environment:
POSTGRES_DB: lithium
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- lithium-network
backend:
image: phillychi3/lithium-player-backend:latest
container_name: lithium-backend
volumes:
- backend:/app/data
ports:
- "8000:8000"
environment:
SQLIP: postgres
networks:
- lithium-network
depends_on:
- postgres
frontend:
image: phillychi3/lithium-player-frontend:latest
container_name: lithium-frontend
volumes:
- ./frontend:/app
ports:
- "3000:3000"
networks:
- lithium-network
depends_on:
- backend
nginx:
image: nginx:latest
container_name: lithium-nginx
volumes:
- "./nginx.conf:/etc/nginx/conf.d/default.conf"
ports:
- "4000:80"
networks:
- lithium-network
depends_on:
- frontend
volumes:
postgres_data:
backend:
networks:
lithium-network:
driver: bridge