-
Notifications
You must be signed in to change notification settings - Fork 50
/
docker-compose.yml
84 lines (75 loc) · 2.05 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '3.9'
volumes:
localstack-data:
external: true
services:
app:
restart: always
build: .
ports:
- "443:5000"
links:
- pg:pg
#- localstack:localstack
volumes:
- ./storymap:/usr/src/apps/StoryMapJS/storymap
- ./dist:/usr/src/apps/StoryMapJS/dist
- ./compiled:/usr/src/apps/StoryMapJS/compiled
working_dir: /usr/src/apps/StoryMapJS
environment:
DEBUG: 'true'
PYTHONPATH: .
AWS_ACCESS_KEY_ID: xyz
AWS_DEFAULT_REGION: us-east-1
AWS_SECRET_ACCESS_KEY: xyz
REDIS_HOST: redis
RABBITMQ_HOST: rabbitmq
env_file: .env
command: gunicorn -b :5000 --workers 1 --reload --log-level debug storymap.core.wsgi:application --keyfile KnightLabRootCA.key --certfile KnightLabRootCA.crt
depends_on:
- pg
#- localstack
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
image: localstack/localstack
ports:
- "4566:4566"
- "4571:4571"
environment:
- LOCALSTACK_SERVICES=s3
- LOCALSTACK_LEGACY_PERSISTENCE=1
- LOCALSTACK_PERSISTENCE=1
# - LOCALSTACK_DATA_DIR=/localstack/data
volumes:
#- ./.localstack/:/var/lib/localstack
- localstack-data:/var/lib/localstack
#- ./.localstack/:/localstack
#- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
pg:
image: postgres:12.17
restart: always
environment:
POSTGRES_USER: storymap
POSTGRES_DB: storymap
POSTGRES_PASSWORD: storymap
ports:
- "5432:5432"
volumes:
- ./.pgdata/:/var/lib/postgresql/data/
huey:
build:
context: .
dockerfile: Dockerfile.huey
restart: always
working_dir: /usr/src/apps/StoryMapJS
volumes:
- ./storymap:/usr/src/apps/StoryMapJS/storymap
env_file: .env
environment:
PYTHONPATH: .
AWS_ACCESS_KEY_ID: xyz
AWS_DEFAULT_REGION: us-east-1
AWS_SECRET_ACCESS_KEY: xyz
command: huey_consumer.py --logfile=storymap/huey.log storymap.tasks.huey
#depends_on:
# - localstack