-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
70 lines (66 loc) · 1.53 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
version: "3"
services:
redis:
image: redis:latest
dns_search: amch.local
hostname: redis.amch.local
domainname: amch.local
restart: on-failure:2
networks:
amch-local:
aliases:
- redis.amch.local
mariadb:
image: mariadb:10.4
dns_search: amch.local
hostname: mariadb.amch.local
domainname: amch.local
restart: on-failure:2
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-upublic", "-ppublic"]
interval: 120s
timeout: 1s
retries: 3
networks:
amch-local:
aliases:
- mariadb.amch.local
volumes:
- "${AMCH_MYSQL_VOLUME:-amch_mariadb_data}:/var/lib/mysql"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=allmychanges
- MYSQL_USER=allmychanges-user
- MYSQL_PASSWORD=allmychanges-password
amch-web:
depends_on:
- mariadb
- redis
build: ./
container_name: amch-web
dns_search: amch.local
hostname: amch-web.amch.local
domainname: amch.local
restart: on-failure:2
command: tail -f /dev/null
working_dir: /app
networks:
amch-local:
aliases:
- amch-web.amch.local
volumes:
- ./:/app
environment:
- REDIS_HOST=redis.amch.local
- MYSQL_HOST=mariadb.amch.local
- MYSQL_DATABASE=allmychanges
- MYSQL_USER=allmychanges-user
- MYSQL_PASSWORD=allmychanges-password
ports:
- "1080:80"
networks:
amch-local:
driver: bridge
volumes:
amch_mariadb_data:
driver: local