-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
85 lines (79 loc) · 1.93 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
services:
balancer:
depends_on:
- "backoffice"
- "app"
image: nginx:stable-alpine
container_name: "euj-balancer"
networks:
- euj
ports:
- "5000:80"
volumes:
- ./euscitojoypad_db/MEDIA:/usr/share/nginx/html/bo/files
- ./euscitojoypad_db/STATIC:/usr/share/nginx/html/bo/static
- ./infra/nginx/conf.d:/etc/nginx/conf.d
# PostgreSQL
postgresql:
image: postgres:14-alpine
container_name: "euj-postgresql"
networks:
- euj
env_file: ./compose_env
volumes:
- postgres-data:/var/lib/postgresql/data
- ./infra/db/:/docker-entrypoint-initdb.d/
#command: postgres -c 'log_statement=all' -c 'log_min_messages=INFO'
ports:
- 5432:5432
# È uscito Joypad? (Backend Dream + React SPA)
app:
image: ghcr.io/pdonadeo/e-uscito-joypad:latest
depends_on:
- "postgresql"
container_name: "euj-app"
build: ./
networks:
- euj
environment:
PGHOST: "postgresql"
PGPORT: "5432"
env_file: ./compose_env
# Backoffice (Django)
backoffice:
image: ghcr.io/pdonadeo/e-uscito-joypad-db:latest
depends_on:
- "postgresql"
container_name: "euj-backoffice"
build: ./euscitojoypad_db/
networks:
- euj
environment:
PGHOST: "postgresql"
PGPORT: "5432"
env_file: ./compose_env
volumes:
- ./euscitojoypad_db/backoffice:/app/backoffice
- ./euscitojoypad_db/euscitojoypad_db:/app/euscitojoypad_db
- ./euscitojoypad_db/MEDIA:/app/MEDIA
- ./euscitojoypad_db/STATIC:/app/STATIC
# Discord bot (Go)
bot:
image: ghcr.io/pdonadeo/e-uscito-joypad-bot:latest
depends_on:
- "postgresql"
container_name: "euj-bot"
build: ./discord-bot/
networks:
- euj
environment:
PGHOST: "postgresql"
PGPORT: "5432"
env_file: ./compose_env
volumes:
postgres-data:
driver: local
networks:
euj:
name: euj