-
Notifications
You must be signed in to change notification settings - Fork 52
/
docker-compose.yaml
45 lines (41 loc) · 973 Bytes
/
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
version: '3'
services:
app:
build: .
entrypoint: dockerize -wait tcp://db:3306 -timeout 40s ./.docker/entrypoint.sh
volumes:
- .:/var/www
networks:
- app-network
depends_on:
- db
nginx:
build: .docker/nginx
restart: always
tty: true
ports:
- "8000:80"
volumes:
- .:/var/www
networks:
- app-network
depends_on:
- app
db:
image: mysql:5.7
command: --innodb-use-native-aio=0
restart: always
tty: true
ports:
- "33006:3306"
volumes:
- ./.docker/dbdata:/var/lib/mysql
- ./.docker/mysql:/docker-entrypoint-initdb.d
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=root
networks:
- app-network
networks:
app-network:
driver: bridge