-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (66 loc) · 1.58 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
version: "3"
# The default docker-compose file for local development
# Usage:
#
# $ docker-compose build
# $ docker-compose up
#
# Navigate to https://localhost
#
# See QUICKSTART.md for preliminaries before running this stack.
# Runs the Flask development server. This stack is sufficient for most
# development needs and so is the default docker-compose option.
services:
app:
restart: always
build: .
ports:
- "127.0.0.1:5443:5000"
links:
#- mongo:mongo
- localstack:localstack
- pg:pg
volumes:
- .:/usr/src/apps/StoryMapJS
- .localstack:/usr/src/apps/StoryMapJS/.localstack
env_file: .env
environment:
- PG_HOST=pg
command: gunicorn --workers 3 -b 0.0.0.0:5000 core.wsgi:application
depends_on:
#- mongo
- pg
#mongo:
# image: mongo:2.4
# restart: always
# volumes:
# - mongodata:/data/db
# ports:
# - "27017-27019:27017-27019"
# environment:
# MONGO_INITDB_DATABASE: storymapjs
pg:
image: postgres:11.6
restart: always
environment:
POSTGRES_USER: storymap
POSTGRES_DB: storymap
POSTGRES_PASSWORD: storymap
ports:
- "127.0.0.1:5432:5432"
volumes:
- ./.pgdata:/var/lib/postgresql/data/
localstack:
image: localstack/localstack-light
restart: always
environment:
USE_LIGHT_IMAGE: 1
LOCALSTACK_SERVICES: s3
DATA_DIR: /tmp/localstack/data
ports:
- "127.0.0.1:4566:4566"
volumes:
- ./.localstack:/tmp/localstack
- /var/run/docker.sock:/var/run/docker.sock
#volumes:
# mongodata: