-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (65 loc) · 1.31 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
version: "3"
services:
nginx:
image: nginx:1.17.9
ports:
- 88:80
# - 443:443
volumes:
- ./src:/var/www:delegated
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:delegated
depends_on:
- php
networks:
- app-network
restart: always
mysql:
image: mariadb:10.5
restart: on-failure:3
tty: true
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
SERVICE_TAGS: prod
SERVICE_NAME: mysql
volumes:
- mysqldata:/var/lib/mysql
networks:
- app-network
restart: always
php:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./src:/var/www:delegated
networks:
- app-network
restart: always
redis:
image: redis:6.0-alpine
command: redis-server --requirepass ${REDIS_PASSWORD} --appendonly yes
volumes:
- redisdata:/data
networks:
- app-network
restart: on-failure:3
# adminer:
# image: adminer
# restart: always
# ports:
# - 8081:8080
# networks:
# - app-network
volumes:
redisdata:
driver: local
mysqldata:
driver: local
networks:
app-network:
driver: bridge