-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-prebuilt.yaml
72 lines (66 loc) · 1.77 KB
/
docker-compose-prebuilt.yaml
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
72
name: utili
services:
postgres:
container_name: utili-postgres
image: postgres:16
volumes:
- './postgresql-data:/var/lib/postgresql/data'
networks:
- backend
restart: unless-stopped
environment:
POSTGRES_USER: utili
POSTGRES_PASSWORD: password
POSTGRES_DB: utili
bot:
container_name: utili-bot
image: 230daniel/utili-bot
depends_on:
- 'postgres'
volumes:
- './config/bot.json:/app/appsettings.json:ro'
- './bot-logs:/app/logs'
networks:
- backend
restart: unless-stopped
logging:
driver: "local"
options:
max-size: 50M
backend:
container_name: utili-backend
image: 230daniel/utili-backend
depends_on:
- 'bot'
volumes:
- './config/backend.json:/app/appsettings.json:ro'
- './aspnet-data:/root/.aspnet'
- './backend-logs:/app/logs'
networks:
- backend
- frontend
restart: unless-stopped
logging:
driver: "local"
options:
max-size: 50M
frontend:
container_name: utili-frontend
image: 230daniel/utili-frontend
depends_on:
- 'backend'
volumes:
- './config/frontend.js:/build/config.js:ro'
- './config/nginx.conf:/etc/nginx/nginx.conf:ro'
- '/etc/letsencrypt:/etc/letsencrypt:ro'
networks:
- frontend
ports:
- '443:443'
- '80:80'
restart: unless-stopped
networks:
backend:
driver: bridge
frontend:
driver: bridge