-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (73 loc) · 1.83 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
version: "3.7"
services:
backend:
build:
context: .
dockerfile: .docker/Dockerfile_base
command: shell
environment:
- DEBUG=${DEBUG:-True}
- APP_LOGGING_LEVEL=${APP_LOGGING_LEVEL:-INFO}
- DB_LOGGING_LEVEL=${DB_LOGGING_LEVEL:-INFO}
- DJANGO_SETTINGS_MODULE=backend_test.settings
- APP=backend_test
- QUEUES=celery
- PYTHONDONTWRITEBYTECODE=1
# forwarded from the host if they exist
- UPDATE_PYTHON_REQUIREMENTS_ON_CONTAINERSTART
- SLACK_SEND_MENU_HOUR=10
- SLACK_BLOCK_MENU_HOUR=11
- SLACK_TOKEN=token_here
- SITE_URL=http://localhost:8000
volumes:
- .:/opt/cornershop/backend-test
ports:
- 8000:8000
depends_on:
- jupyterlab
- postgres
- redis
jupyterlab:
build:
context: .
dockerfile: .docker/Dockerfile_base
command: jupyterlab
ports:
- 8001:8000
volumes:
- .:/opt/cornershop/backend-test
environment:
- DJANGO_SETTINGS_MODULE=backend_test.settings
- PYTHONDONTWRITEBYTECODE=1
- DJANGO_ALLOW_ASYNC_UNSAFE=true
- APP=backend_test
- QUEUES=celery
# forwarded from the host if they exist
- UPDATE_PYTHON_REQUIREMENTS_ON_CONTAINERSTART
postgres:
image: circleci/postgres:12.3-postgis
volumes:
- postgres123-data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
- 5432:5432
testdb:
image: circleci/postgres:12.3-postgis-ram
environment:
- POSTGRES_USER=testdb
- POSTGRES_PASSWORD=testdb
- POSTGRES_DB=testdb
ports:
- 5433:5432
redis:
image: redis:6-alpine
volumes:
- redis-data:/data
ports:
- 6379:6379
volumes:
postgres123-data: {}
redis-data: {}