-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.12 KB
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
---
services:
backend:
build:
context: ./backend
container_name: codocodile_backend
expose:
- "8000"
depends_on:
- frontend
volumes:
- data:/app/data:rw
networks:
- codocodile_network
env_file:
- ./backend/local.env
restart: unless-stopped
frontend:
build:
context: ./new-frontend
dockerfile: Dockerfile
# args:
# NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-https://codocodile.ir}
container_name: codocodile_frontend
expose:
- "3000"
networks:
- codocodile_network
restart: unless-stopped
nginx:
image: nginx
container_name: codocodile_nginx
ports:
- "80:80"
- "443:443"
volumes:
- /etc/letsencrypt/live/codocodile.ir/fullchain.pem:/etc/nginx/ssl/codocodile.ir.crt:ro
- /etc/letsencrypt/live/codocodile.ir/privkey.pem:/etc/nginx/ssl/codocodile.ir.key:ro
- ./nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- codocodile_network
depends_on:
- backend
- frontend
restart: unless-stopped
networks:
codocodile_network:
volumes:
data: