-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 1.09 KB
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
version: '3.4'
services:
web:
image: nginx:1.18.0-alpine
ports:
- "${DOCKER_HOST_PROXY_PORT:-8080}:80"
depends_on:
- php
env_file:
- .env
volumes:
- ./src/:/var/www/shopsqueue/html:ro
- ./nginx-setup.conf:/etc/nginx/conf.d/default.conf:ro
deploy:
restart_policy:
condition: on-failure
delay: 1s
php:
build: .
depends_on:
- db
env_file:
- .env
volumes:
- ./src:/var/www/shopsqueue/html:ro
deploy:
restart_policy:
condition: on-failure
delay: 1s
db:
image: "yobasystems/alpine-mariadb:10.6.4"
volumes:
- db-data:/var/lib/mysql
- ./mariadb-app-settings.cnf:/etc/my.cnf.d/mariadb-app-settings.cnf:ro
deploy:
restart_policy:
condition: on-failure
delay: 2s
environment:
MYSQL_ROOT_PASSWORD: "${SHOPS_QUEUE_DB_PASSWORD:-pwd}"
MYSQL_DATABASE: "${SHOPS_QUEUE_DB_NAME:-shopsqueue}"
MYSQL_USER: "${SHOPS_QUEUE_DB_USERNAME:-shopsqueue}"
MYSQL_PASSWORD: "${SHOPS_QUEUE_DB_PASSWORD:-pwd}"
volumes:
db-data: