-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (62 loc) · 1.51 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: "3.8"
services:
db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: app
MYSQL_DATABASE: app
TZ: Europe/Paris
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
environment:
PMA_ARBITRARY: 1
PMA_HOST: db
restart: always
ports:
- 9080:80
links:
- db
redis:
image: redis:5.0.8
restart: on-failure
command: >
--requirepass redis_password
mailhog:
image: mailhog/mailhog
restart: always
ports:
- ${MAILHOG_PORT_SMTP:-1025}:1025
- ${MAILHOG_PORT_HTTP:-8025}:8025
php:
working_dir: /app
build:
context: .
dockerfile: ./docker/php/Dockerfile
target: dev
depends_on:
- db
command:
- /bin/bash
- -c
- |
symfony server:stop
symfony server:start --port=80
volumes:
- "./front:/app:rw"
- "./terraform:/app/terraform:rw"
- "./ansible:/app/ansible:rw"
ports:
- ${PHP_PORT_HTTP:-80}:80
links:
- db
- redis
assets:
working_dir: /app
build:
context: .
dockerfile: ./docker/php/Dockerfile
target: dev
command: yarn watch
volumes:
- "./front:/app:rw"