-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (84 loc) · 1.86 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
86
87
version: "3.9"
networks:
public:
# This network is exposed
driver: bridge
name: public
internal:
# This Docker network is only used for the database.
driver: bridge
name: internal
internal: true
services:
seed:
build: .
volumes:
- database_seed:/srv/app/db
database:
image: docker.io/bitnami/mariadb:10.6
depends_on:
seed:
condition: service_completed_successfully
volumes:
- database:/bitnami/mariadb
- database_seed:/docker-entrypoint-initdb.d
env_file: env/db.env
networks:
- internal
healthcheck:
test: ["CMD", "/opt/bitnami/scripts/mariadb/healthcheck.sh"]
interval: 15s
timeout: 5s
retries: 6
restart: always
api:
build: api
ports:
- 3001:3001
depends_on:
database:
condition: service_healthy
env_file: env/api.env
networks:
- public
- internal
restart: always
front:
build: front
ports:
- 8081:8081
env_file: env/front.env
networks:
- public
restart: always
adminer:
image: thomaslachaux/adminer-material
restart: always
ports:
- 8080:8080
networks:
- public
- internal
grafana:
image: bitnami/grafana:8
ports:
- 3000:3000
volumes:
# Thanks bitnami for this very clear docs : https://github.com/bitnami/bitnami-docker-grafana#configuration
# As stated in some very hidden docs https://github.com/bitnami/charts/tree/master/bitnami/grafana#persistence
# it is nice to save the data folder in /opt/bitnami/grafana too
- grafana:/opt/bitnami/grafana
networks:
- public
- internal
restart: always
volumes:
database:
driver: local
name: ua_bouffe_db
database_seed:
driver: local
name: ua_bouffe_seed
grafana:
driver: local
name: ua_bouffe_grafana