-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
95 lines (87 loc) · 1.95 KB
/
docker-compose.example.yml
File metadata and controls
95 lines (87 loc) · 1.95 KB
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
services:
db:
image: mysql:8.4.0
ports:
- 3306:3306
volumes:
# Run tables.sql on startup (only for fresh databases)
#- ./tables.sql:/docker-entrypoint-initdb.d/tables.sql:ro
- reon_db:/var/lib/mysql
environment:
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_DATABASE
- MYSQL_ROOT_PASSWORD
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "$$MYSQL_USER", "-p$$MYSQL_PASSWORD"]
timeout: 5s
retries: 10
interval: 3s
migrate:
build:
dockerfile: Dockerfile
target: migrate
volumes:
- ./config.json:/var/www/reon/config.json:ro
depends_on:
db:
condition: service_healthy
restart: "no"
cron:
build:
dockerfile: Dockerfile
target: cron
volumes:
- "./config.json:/app/config.json"
depends_on:
migrate:
condition: service_completed_successfully
web:
build:
dockerfile: Dockerfile
target: web
volumes:
- ./config.json:/var/www/reon/config.json:ro
- ./web/:/var/www/reon/web
tmpfs:
- /tmp/reon
depends_on:
migrate:
condition: service_completed_successfully
nginx:
image: nginx:1.27.0
volumes:
- ./examples/nginx/default.conf.template:/etc/nginx/templates/default.conf.template
- ./web/:/var/www/reon/web
ports:
- 80:80
environment:
- NGINX_PORT=80
- NGINX_HOST="_"
# Hostname and port for fastcgi_pass directive
- WEB_URL=web:9000
depends_on:
- web
mail:
build:
dockerfile: Dockerfile
target: mail
ports:
- 25:25
- 110:110
volumes:
- ./config.json:/app/config.json:ro
depends_on:
migrate:
condition: service_completed_successfully
dns:
build:
dockerfile: Dockerfile
target: dns
ports:
- 53:53/udp
environment:
- EXTERNAL_IP
volumes:
reon_db:
name: reon_db