-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-ci-step2.yml
96 lines (95 loc) · 2.56 KB
/
docker-compose-ci-step2.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
85
86
87
88
89
90
91
92
93
94
95
96
version: "3.8"
services:
# ---------------------------------
# Redis: used for async celery tasks
# ---------------------------------
redis:
image: redis
command: redis-server --requirepass password
expose:
- 6379
# ---------------------------------
# Postgres Database
# ---------------------------------
db:
image: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
# ---------------------------------
# Server side (Django)
# - Built from "server/Dockerfile"
# ---------------------------------
server:
container_name: webapp-frontend
build: "./server"
# For production we will need to set
# these variables to point to a standalone instance
env_file:
- .env
environment:
- DJANGO_SETTINGS_MODULE=opendp_project.settings.cypress_settings
- VUE_APP_GOOGLE_CLIENT_ID=TEST. Set in docker-compose-ci-step2.yml
- VUE_APP_ADOBE_PDF_CLIENT_ID=TEST. Set in docker-compose-ci-step2.yml
- SKIP_PDF_CREATION_FOR_TESTS=False
- SKIP_EMAIL_RELEASE_FOR_TESTS=True
command: sh -c "./migrate.sh && python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/code
- ./server/static:/server/static
ports:
- "8000:8000"
depends_on:
- db
# ---------------------------------
# Celery Task Queue
# - Used for profiling, other longer
# running tasks
# ---------------------------------
celery-queue:
build: "./server"
environment:
- DJANGO_SETTINGS_MODULE=opendp_project.settings.cypress_settings
- SKIP_PDF_CREATION_FOR_TESTS=True
- SKIP_EMAIL_RELEASE_FOR_TESTS=True
env_file:
- .env
command: celery -A opendp_project worker -l info -n worker_dpcreator
# command: celery -A opendp_project worker -l INFO
volumes:
- .:/code
ports:
- "8070:8070"
depends_on:
- db
- redis
- server
cypress:
build: "./client/cypress"
entrypoint: ""
depends_on:
- celery-queue
# Note: the environment vars have been moved to a custom config file: cypress_github_ci.json
#environment:
# - CYPRESS_BASE_URL=http://server:8000
working_dir: /e2e
volumes:
- ./client:/e2e
environment:
WAIT_HOSTS: server:8000
#latex:
# build: "./latex_service"
# env_file:
# - latex_service/.env
# command: python /code/latex_service/app.py 1234
# volumes:
# - .:/code
# ports:
# - "1234:1234"
# depends_on:
# - db
# - redis
# - server