-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 983 Bytes
/
docker-compose.yml
File metadata and controls
56 lines (52 loc) · 983 Bytes
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
version: '2'
services:
db:
image: mariadb
container_name: db
ports:
- "3306:3306"
volumes:
- db:/var/lib/mysql
environment:
MYSQL_DATABASE: edencatsdb
MYSQL_ROOT_PASSWORD: ********
command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
restart: always
networks:
- back
web:
build: ./
container_name: web
volumes:
- media:/var/www/eden_cats_blog/media
- static:/var/www/eden_cats_blog/static
restart: always
networks:
- front
- back
expose:
- "8088"
depends_on:
- db
nginx:
build: ./nginx
ports:
- "80:80"
volumes:
- static:/usr/share/nginx/html/static:ro
- media:/usr/share/nginx/html/media:ro
networks:
- front
depends_on:
- web
restart: always
volumes:
db:
driver: local
media:
driver: local
static:
driver: local
networks:
front:
back: