-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
78 lines (72 loc) · 1.47 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
74
75
76
77
78
version: "3"
services:
nginx:
image: nginx:1.17.9
restart: on-failure:3
ports: #change if prod
- 8000:80
- 8443:443
volumes:
- ./app:/var/www:delegated
- ./config/default.dev.conf:/etc/nginx/conf.d/default.conf:delegated
depends_on:
- php
networks:
- app-network
es:
image: elasticsearch:7.11.1
environment:
- discovery.type=single-node
networks:
- app-network
ports: #remove if prod
- 9200:9200
php:
build:
context: .
dockerfile: Dockerfile.dev
restart: on-failure:3
environment:
OJ_DOC_URL: ${OJ_DOC_URL}
volumes:
- ./app:/var/www:delegated
networks:
- app-network
mysql:
image: mariadb:10.5
restart: on-failure:3
tty: true
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
volumes:
- mysqldata:/var/lib/mysql
networks:
- app-network
adminer:
image: adminer
restart: always
ports:
- 8081:8080
networks:
- app-network
redis:
image: redis:6.0-alpine
command: redis-server --requirepass ${REDIS_PASSWORD} --appendonly yes
expose:
- 6379
volumes:
- redisdata:/data
networks:
- app-network
restart: on-failure:3
volumes:
redisdata:
driver: local
mysqldata:
driver: local
networks:
app-network:
driver: bridge