This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (81 loc) · 2.02 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
version: '3.3'
services:
nginx:
image: nginx:1.23.3
restart: unless-stopped
depends_on:
- 'api'
ports:
- '80:80'
volumes:
- './logs/nginx:/var/log/nginx'
environment:
- TZ=Europe/Paris
networks:
mobiville_network:
ipv4_address: 173.0.0.10
api:
restart: unless-stopped
expose:
- '8080'
networks:
mobiville_network:
ipv4_address: 173.0.0.20
depends_on:
- 'db'
environment:
- DATABASE_URL=${DATABASE_URL}
- EMPLOI_STORE_URL=${EMPLOI_STORE_URL}
- ENTERPRISE_URL=${ENTERPRISE_URL}
- EMPLOI_STORE_ID=${EMPLOI_STORE_ID}
- EMPLOI_STORE_SECRET=${EMPLOI_STORE_SECRET}
- SENTRY_DSN=${SENTRY_DSN}
stdin_open: true
db:
image: mariadb:10.8.2
# 10.8.3 incompatible avec docker < 20.xx.x : https://github.com/MariaDB/mariadb-docker/issues/434
restart: always
ports:
- "127.0.0.1:3306:3306"
networks:
mobiville_network:
ipv4_address: 173.0.0.50
environment:
- MARIADB_AUTO_UPGRADE=1
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
- TZ=Europe/Paris
volumes:
- './db/var/lib/mysql:/var/lib/mysql'
backup:
restart: unless-stopped
build:
context: ./backups
dockerfile: Dockerfile
args:
- ENV_TYPE=${ENV_TYPE:-developpement}
- TIMEZONE=${TIMEZONE:-Europe/Paris}
- DB_USER=${MYSQL_USER}
- DB_PASSWORD=${MYSQL_PASSWORD}
container_name: mobiville-backup
hostname: backups
environment:
- DB_HOST=db
- DB_NAME=${MYSQL_DATABASE}
- DB_USER=${MYSQL_USER}
- DB_PASSWORD=${MYSQL_PASSWORD}
volumes:
- .:/home/docker/mobiville
- /mnt/backups:/mnt/backups
- ./backups:/backups
networks:
mobiville_network:
ipv4_address: 173.0.0.80
networks:
mobiville_network:
driver: bridge
ipam:
config:
- subnet: 173.0.0.0/16