-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1020 Bytes
/
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
version: '3'
services:
api:
build:
context: ./api/
dockerfile: ./docker/Dockerfile
command: "django-admin runserver 0.0.0.0:8000"
depends_on:
- postgresql
- localstack
ports:
- 8000:8000
environment:
- DB_HOST=postgresql
- DB_NAME=main
- DB_PORT=5432
- DB_USER=postgres
- DJANGO_SETTINGS_MODULE=api.settings
- PYTHONUNBUFFERED=True
volumes:
- ./api/:/api/
localstack:
image: localstack/localstack:0.8.10
ports:
- 4572:4572
- 4569:4569
- 9000:9000
environment:
- DEBUG=1
- DEFAULT_REGION=eu-west-1
- DOCKER_HOST=unix:///var/run/docker.sock
- PORT_WEB_UI=9000
- SERVICES=dynamodb,s3
volumes:
- /tmp/localstack:/tmp/localstack
- "/var/run/docker.sock:/var/run/docker.sock"
postgresql:
image: postgres:10.3
volumes:
- ./local_volumes/db/:/var/lib/postgresql/data
environment:
- POSTGRES_DB=main
ports:
- 5432