-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-production.yml
68 lines (62 loc) · 1.42 KB
/
docker-compose-production.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
version: '3.8'
services:
backend:
image: fsbt-back
container_name: fsbt-back
build: ./back-end
restart: always
env_file:
- .env
environment:
- SECRET_KEY=${SECRET_KEY}
- ADMIN_USERNAME=${ADMIN_USERNAME}
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
- DATABASE=${DATABASE}
ports:
- "8000:8000"
volumes:
- ./back-end/test.db:/usr/src/app/back-end/test.db
frontend:
image: fsbt-front
container_name: fsbt-front
restart: always
build: ./front-end
ports:
- "80:80"
- "443:443"
volumes:
- ./front-end/nginx.conf:/etc/nginx/conf.d/default.conf
- /etc/letsencrypt/live/fossbot.gr/fullchain.pem:/etc/letsencrypt/live/fossbot.gr/fullchain.pem
- /etc/letsencrypt/live/fossbot.gr/privkey.pem:/etc/letsencrypt/live/fossbot.gr/privkey.pem
depends_on:
- backend
db:
image: postgres:latest
container_name: fsbt-db
restart: always
env_file:
- .env
volumes:
- db-data:/var/lib/postgresql/data
matomo:
image: matomo:latest
container_name: matomo
restart: always
env_file:
- .env
depends_on:
- frontend
- mariadb
volumes:
- matomo_data:/var/www/html
mariadb:
image: mariadb:latest
restart: always
env_file:
- .env
volumes:
- mariadb_data:/var/lib/mysql
volumes:
db-data:
matomo_data:
mariadb_data: