-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
73 lines (67 loc) · 1.91 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
71
72
73
version: "3.7"
services:
app:
build:
context: .docker/app
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
environment:
PHP_IDE_CONFIG: serverName=api
restart: always
depends_on:
- db
- redis
volumes:
- ./:/var/www/html
- ~/.ssh:/home/www/.ssh:ro
command: dockerize -wait tcp://db:3306 -- bash -c "php-fpm"
networks:
- default
extra_hosts:
- host.docker.internal:host-gateway
db:
image: percona/percona-server:latest
platform: linux/amd64
restart: always
environment:
MYSQL_DATABASE: '${DB_DATABASE:-merchant_dv}'
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD:-rootpassword}'
MYSQL_USER: '${DB_USERNAME:-merchant_dv}'
MYSQL_PASSWORD: '${DB_PASSWORD:-rootpassword}'
volumes:
- db-data:/var/lib/mysql
- ./.docker/mysql/conf.d/10-trust-function-creators.cnf:/etc/my.cnf.d/10-trust-function-creators.cnf:ro
ports:
- 13306:3306
nginx:
image: nginx:latest
volumes:
- .:/var/www/html
- .docker/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- .docker/nginx/conf/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- app
ports:
- '${APP_PORT:-80}:80'
redis:
image: redis:alpine
volumes:
- redis-data:/data
ports:
- 16379:6379
mailhog:
image: 'mailhog/mailhog:latest'
ports:
- '${FORWARD_MAILHOG_PORT:-1025}:1025'
- '${FORWARD_MAILHOG_DASHBOARD_PORT:-8025}:8025'
networks:
- default
networks:
default:
name: dv_backend_network
driver: bridge
external: true
volumes:
db-data:
redis-data: