-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1011 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (52 loc) · 1011 Bytes
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
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
env_file:
- ./frontend/.env
ports:
- "3000:3000"
environment:
- NODE_ENV=production
depends_on:
- backend
volumes:
- nextjs_static:/app/.next
networks:
- app-network
restart: unless-stopped
backend:
build:
context: ./backend
ports:
- "8080:8080"
env_file:
- ./backend/.env
volumes:
- go_data:/root/data
networks:
- app-network
restart: unless-stopped
nginx:
image: nginx:stable-alpine
container_name: nginx
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf.d:/etc/nginx/conf.d:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
depends_on:
- backend
- frontend
networks:
- app-network
volumes:
nextjs_static:
go_data:
networks:
app-network:
driver: bridge