-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (64 loc) · 1.77 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
version: '2'
services:
web:
image: nginx:latest
labels:
- "traefik.enable=true"
- "traefik.backend=todo_web"
- "traefik.frontend.rule=Host:todo.local"
- "traefik.docker.network=web"
- "traefik.port=${NGINX_PORT}"
volumes:
- .:/usr/share/nginx/html:ro
- ./docker/site.conf:/etc/nginx/conf.d/default.conf
networks:
- web
- internal
php:
build:
context: ./docker/php-fpm
image: shaifulphp
labels:
- "traefik.enable=false"
volumes:
- .:/usr/share/nginx/html:ro
- ./docker/log.conf:/usr/local/etc/php-fpm.d/zz-log.conf
networks:
- internal
composer:
image: composer/composer:php7
command: install --ignore-platform-reqs
labels:
- "traefik.enable=false"
volumes:
- .:/app
networks:
- internal
db:
image: mariadb:latest
labels:
- "traefik.enable=false"
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
volumes:
- ./database/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
# - ./database:/var/lib/mysql
networks:
- internal
adminer:
image: adminer
labels:
- "traefik.enable=true"
- "traefik.backend=todo_adminer"
- "traefik.frontend.rule=Host:adminer.todo.local"
- "traefik.docker.network=web"
- "traefik.port=8080"
networks:
- internal
- web
networks:
web:
external: true
internal:
external: false