-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtest.yml
47 lines (43 loc) · 1.05 KB
/
test.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.1"
volumes:
test_postgres_data: {}
test_postgres_data_backups: {}
services:
django: &django
build:
context: .
dockerfile: ./compose/django/Dockerfile
args:
DJANGO_SETTINGS_MODULE: config.settings.test
image: missioncontrol_test_django
depends_on:
- postgres
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
ports:
- "8000:8000"
command: >
bash -c "poetry run python manage.py migrate
&& poetry run python manage.py runserver_plus 0.0.0.0:8000"
frontend:
build:
context: ./frontend
image: missioncontrol_test_frontend
ports:
- "3000:3000"
command: start
depends_on:
- django
environment:
- REACT_APP_PROXY=http://django:8000/
postgres:
build:
context: .
dockerfile: ./compose/postgres/Dockerfile
image: missioncontrol_test_postgres
volumes:
- test_postgres_data:/var/lib/postgresql/data
- test_postgres_data_backups:/backups
env_file:
- ./.envs/.local/.postgres