-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
51 lines (51 loc) · 1.47 KB
/
docker-compose.yaml
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
version: '3.7'
services:
mysql:
image: mysql/mysql-server:8.0.25
restart: on-failure
environment:
MYSQL_USER: dev
MYSQL_PASSWORD: dev
MYSQL_DATABASE: dev
MYSQL_ROOT_PASSWORD: password
volumes:
- mysql:/var/lib/mysql
- ./docker/mysql/init:/docker-entrypoint-initdb.d
ports:
- 9536:3306
nginx:
build:
context: .
target: nginx_notification_app
args:
USER_ID: ${USER_ID:-}
GROUP_ID: ${GROUP_ID:-}
USER_NAME: ${USER_NAME-}
ports:
- 9500:9500
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./public:/var/www/html/public:ro
depends_on:
- php
php:
image: php_notification_app
build:
context: .
target: php_notification_app
args:
USER_ID: ${USER_ID:-}
GROUP_ID: ${GROUP_ID:-}
USER_NAME: ${USER_NAME-}
environment:
PHP_OPCACHE_VALIDATE_TIMESTAMPS: 1
APP_SECRET: EDITME
volumes:
- .:/var/www/html:rw
- ./var:/var/www/html/var:rw
- ./public:/var/www/html/public:rw
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
mysql: