-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (56 loc) · 1.21 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
version: '3.4'
volumes:
harbin_data_media: {}
postgres_data: {}
postgres_run: {}
services:
postgres:
image: "postgres:11"
volumes:
- postgres_data:/var/lib/postgresql/data
- postgres_run:/run/postgresql
environment:
- POSTGRES_USER=postgresuser
- POSTGRES_PASSWORD=7n933WIXZvzvDHEO
ports:
- "5432:5432"
redis:
restart: always
image: redis:3.0
expose:
- "6379"
elasticsearch:
image: elasticsearch:5.4
restart: always
expose:
- "9200"
wagtail:
build:
context: .
dockerfile: Dockerfile-dev
volumes:
- .:/app
- postgres_run:/run/postgresql
environment:
- CACHE_URL=redis://redis
- DATABASE_URL=postgresql://postgresuser@/postgresuser
- ELASTICSEARCH_ENDPOINT=elasticsearch
links:
- redis:redis
- elasticsearch:elasticsearch
ports:
- "8000:8000"
depends_on:
- redis
- elasticsearch
- vue
command: ["./wait-for-it.sh", "postgres:5342", "--", "./docker-entrypoint.sh"]
vue:
build:
context: ./vue_app/
dockerfile: Dockerfile-dev
volumes:
- './vue_app:/app'
- '/app/node_modules'
ports:
- '8080:8080'