-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.dev.yml
81 lines (72 loc) · 1.66 KB
/
docker-compose.dev.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
version: "3.4"
services:
proxy:
image: nginxproxy/nginx-proxy
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
ports:
- "80:80"
networks:
- proxynet
restart: unless-stopped
webserver:
environment:
- VIRTUAL_HOST=localhost
- CERT_NAME=localhost
networks:
- proxynet
restart: unless-stopped
php-fpm:
build:
target: test
networks:
- proxynet
restart: unless-stopped
mailhog:
image: mailhog/mailhog:latest
ports:
- 1025:1025
- 8025:8025
networks:
- proxynet
restart: unless-stopped
mysql:
container_name: ocms-mysql
image: mysql:8.0
# seed database on start
command: --init-file /docker-entrypoint-initdb.d/01-init.sql
volumes:
# copy and rename to ensure execute in lexicographical (sorted, alphabetical) order
- ./sql/hoopless.sql:/docker-entrypoint-initdb.d/01-init.sql
# store database inside volume mount
- dbdata:/var/lib/mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=hoopless
networks:
- proxynet
restart: unless-stopped
phpmyadmin:
container_name: ocms-phpmyadmin
image: phpmyadmin/phpmyadmin
ports:
- "8080:8080"
environment:
- VIRTUAL_HOST=db.localhost
- PMA_HOST=mysql
- PMA_USER=root
- PMA_PASSWORD=
networks:
- proxynet
depends_on:
- proxy
- mysql
restart: unless-stopped
networks:
proxynet:
external: false
volumes:
dbdata: