-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
55 lines (49 loc) · 1.19 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
52
53
54
55
version: '3'
services:
app:
build: .
container_name: micro-videos-app
entrypoint: dockerize -wait tcp://micro-videos-db:3306 -timeout 60s ./.docker/entrypoint.sh
volumes:
- .:/var/www
networks:
- app-network
depends_on:
- db
- redis
nginx:
build: .docker/nginx
container_name: micro-videos-nginx
restart: always
tty: true
ports:
- "8008:80"
volumes:
- .:/var/www
networks:
- app-network
depends_on:
- app
db:
image: mysql:5.7
command: --innodb-use-native-aio=0
container_name: micro-videos-db
restart: always
tty: true
volumes:
- ./.docker/dbdata:/var/lib/mysql
- ./.docker/mysql:/docker-entrypoint-initdb.d
environment:
- MYSQL_ROOT_PASSWORD=root
networks:
- app-network
redis:
image: redis:alpine
container_name: micro-videos-redis
expose:
- 6379
networks:
- app-network
networks:
app-network:
driver: bridge