-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·51 lines (50 loc) · 1.09 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
version: "3.7"
services:
nginx:
image: nginx:latest
container_name: web-server
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./:/var/www
- ./docker-compose/nginx:/etc/nginx/conf.d/
networks:
- cookbooks
app:
build: .
container_name: cookbookshq
depends_on:
- db
volumes:
- ./:/var/www
networks:
- cookbooks
db:
image: mariadb:latest
container_name: db
environment:
MYSQL_DATABASE: cookbooks
MYSQL_PASSWORD: pass
MYSQL_ROOT_PASSWORD: pass
volumes:
- mysqldata:/var/lib/mysql
ports:
- 3306:3306
networks:
- cookbooks
cache:
image: redis:latest
container_name: cache
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- cache:/data
volumes:
mysqldata:
cache:
driver: local
networks:
cookbooks:
driver: bridge