-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (52 loc) · 1.11 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
version: "3.7"
services:
nginx:
image: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- /etc/letsencrypt/live/goleetcode.xyz/fullchain.pem:/etc/nginx/certs/fullchain.pem:ro
- /etc/letsencrypt/live/goleetcode.xyz/privkey.pem:/etc/nginx/certs/privkey.pem:ro
depends_on:
- frontend
- backend
- coderunner
networks:
- my-network
backend:
build: ./backend
ports:
- "8090:8090"
networks:
- my-network
coderunner:
build: ./coderunner
ports:
- "8091:8091"
networks:
- my-network
frontend:
build: ./frontend/leetcode
ports:
- "3000:3000"
- "15000:15000"
networks:
- my-network
# database:
# container_name: database
# image: postgres
# ports:
# - "5432:5432"
# volumes:
# - ./database:/var/lib/postgresql/data
# environment:
# - POSTGRES_DB=goleetcode
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# networks:
# - my-network
networks:
my-network:
driver: bridge