-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-local.yml
More file actions
71 lines (62 loc) · 1.34 KB
/
docker-compose-local.yml
File metadata and controls
71 lines (62 loc) · 1.34 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "127.0.0.1:8000:8000"
env_file:
- .env
volumes:
- ./logs/backend:/app/logs
depends_on:
- mongodb
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "127.0.0.1:3000:3000"
env_file:
- .env
depends_on:
- backend
restart: unless-stopped
telegram-bot:
build:
context: ./telegram-bot
dockerfile: Dockerfile
env_file:
- .env
depends_on:
- mongodb
restart: unless-stopped
mongodb:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
restart: unless-stopped
# nginx:
# image: nginx:alpine
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
# - ./certbot/conf:/etc/letsencrypt
# - ./certbot/www:/var/www/certbot
# depends_on:
# - frontend
# - backend
# restart: unless-stopped
# certbot:
# image: certbot/certbot
# volumes:
# - ./certbot/conf:/etc/letsencrypt
# - ./certbot/www:/var/www/certbot
# entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
mongodb_data: