-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (62 loc) · 1.36 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
version: '2'
services:
django:
build:
context: ./provision/django/
dockerfile: Dockerfile
# build: ./provision/django
image: nnuh_django
depends_on:
- db
- cache
- search
volumes:
- ./src:/code:cached
- ./public:/public:cached
ports:
- "8000:8000"
db:
# build:
# context: ./provision/db/
# dockerfile: Dockerfile
# image: laws_portal_db
image: mysql:5
command: --max_allowed_packet=32505856 --character-set-server=utf8 --collation-server=utf8_general_ci
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=nnuh
volumes:
- ./storage/db:/var/lib/mysql
- ./provision/db/nnuh.sql:/tmp/nnuh.sql
ports:
- "3360:3306"
cache:
image: memcached:alpine
# volumes:
# - ./storage/cache/data:/data
search:
image: elasticsearch:5.6-alpine
volumes:
- ./storage/search/data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
webpack:
build:
context: ./provision/webpack/
dockerfile: Dockerfile
image: nnuh_webpack
depends_on:
- django
volumes:
- ./src/conf/theme:/app/theme
- ./src/conf/static:/app/static
ports:
- "3000:3000"
networks:
default:
# driver: overlay
ipam:
# driver: default
config:
-
subnet: 192.168.181.0/24