-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
103 lines (101 loc) · 2.47 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: "3.6"
services:
phoenix:
build: .
command: /app/scripts/init-phoenix.sh
depends_on:
- nginx
- postgres
- minio
env_file:
- ./.env
healthcheck:
test: /healthcheck_retry.sh curl -fsS localhost:4000/healthcheck
interval: 5s
timeout: 3s
retries: 3
start_period: 30s
volumes:
- .:/app
- ./scripts/utils/healthcheck_retry.sh:/healthcheck_retry.sh
working_dir: /app
nginx:
image: nginx:latest
healthcheck:
test: service nginx status
timeout: 3s
retries: 3
ports:
- ${NGINX_PORT:-80}:80
volumes:
- ./nginx/configs/${WHOST:-localhost}.conf:/etc/nginx/conf.d/default.conf
- /var/log/nginx:/var/log/nginx
- ./priv/static:/static
- ./nginx/error_pages:/errors
nuxt_booklet:
command: yarn setup
depends_on:
- nginx
environment:
- NODE_OPTIONS=--openssl-legacy-provider
env_file:
- ./.env
healthcheck:
test: /healthcheck_retry.sh curl -fsS localhost:3000/healthcheck
interval: 5s
timeout: 3s
retries: 3
start_period: 1m
image: node:18.15.0
volumes:
- ../avril-livret1:/app
- ./scripts/utils/healthcheck_retry.sh:/healthcheck_retry.sh
working_dir: /app
nuxt_profile:
command: yarn setup
depends_on:
- nginx
environment:
- NODE_OPTIONS=--openssl-legacy-provider
env_file:
- ./.env
healthcheck:
test: /healthcheck_retry.sh curl -fsS localhost:3000/healthcheck
interval: 5s
timeout: 3s
retries: 3
start_period: 1m
image: node:18.15.0
volumes:
- ../avril-profil:/app
- ./scripts/utils/healthcheck_retry.sh:/healthcheck_retry.sh
working_dir: /app
postgres:
image: mdillon/postgis:11-alpine
env_file:
- ./.env
healthcheck:
test: pg_isready -U postgres
interval: 5s
timeout: 3s
retries: 3
start_period: 15s
volumes:
- ./db/data:/var/lib/postgresql/data
- ./scripts/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh
- ./db/dumps:/pg-dump
minio:
image: minio/minio
command: server /data
depends_on:
- nginx
env_file:
- ./.env
healthcheck:
test: /healthcheck_retry.sh curl -fsS localhost:9000/minio/health/ready
interval: 5s
timeout: 3s
retries: 3
start_period: 1m
volumes:
- ./scripts/utils/healthcheck_retry.sh:/healthcheck_retry.sh