-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.yml
55 lines (52 loc) · 994 Bytes
/
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
version: '3.3'
services:
caddy:
container_name: caddy
image: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- .:/app/public
- caddy_data:/data
- caddy_config:/config
depends_on:
- php-fpm
php-fpm:
container_name: php-fpm
build: .
restart: unless-stopped
volumes:
- .:/app/public
depends_on:
- database
database:
image: mysql:5.7
ports:
- 3306:3306
environment:
- MYSQL_HOST=database
- MYSQL_PORT=3306
- MYSQL_DATABASE=evoting
- MYSQL_USER=ci
- MYSQL_PASSWORD=ci
- MYSQL_ROOT_PASSWORD=ci
phpmyadmin:
depends_on:
- database
image: phpmyadmin/phpmyadmin
restart: always
ports:
- '8282:80'
environment:
- PHP_ENABLE_XDEBUG=0
- PMA_HOST=database
volumes:
caddy_data:
caddy_config:
networks:
default:
external:
name: main