forked from SeattleCouncilmatic/seattle-councilmatic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (64 loc) · 1.5 KB
/
Copy pathdocker-compose.yml
File metadata and controls
68 lines (64 loc) · 1.5 KB
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
services:
webpack:
container_name: seattle_webpack
build:
context: .
dockerfile: Dockerfile
target: node
stdin_open: true
ports:
- 3000:3000
volumes:
- .:/app
- seattle_node_modules:/app/node_modules
command: npm run serve
app:
build: .
container_name: seattle_councilmatic
depends_on:
postgres:
condition: service_healthy
elasticsearch:
condition: service_started
env_file:
- .env
environment:
DJANGO_MANAGEPY_MIGRATE: "on"
volumes:
- .:/app
ports:
- 8000:8000
entrypoint: /app/docker-entrypoint.sh
command: python manage.py runserver 0.0.0.0:8000
postgres:
container_name: seattle_postgres
image: postgis/postgis:14-3.2
platform: linux/amd64
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
volumes:
- seattle_postgres_data:/var/lib/postgresql/data
ports:
- 32006:5432
elasticsearch:
image: elasticsearch:7.14.2
container_name: seattle_elasticsearch
ports:
- 9200:9200
environment:
- discovery.type=single-node
- logger.org.elasticsearch.discovery=DEBUG
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
mem_limit: 1g
volumes:
- seattle_es_data:/usr/share/elasticsearch/data
volumes:
seattle_node_modules:
seattle_postgres_data:
seattle_es_data: