-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-test.yml
72 lines (71 loc) · 1.7 KB
/
docker-compose-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
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
version: "3.8"
services:
redis:
image: redis
command: redis-server --requirepass password
expose:
- 6379
db:
image: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
# TODO: Load data every time
# client:
# build: "./client"
# command: npm run build
# volumes:
# - .:/code
# - /code/client/node_modules
# ports:
# - "8080:8080"
# depends_on:
# - db
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
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
- ./server/static:/server/static
ports:
- "8000:8000"
depends_on:
# - client
- db
cypress:
image: "cypress/included:4.4.0"
depends_on:
# - client
- server
- db
environment:
- CYPRESS_baseUrl=http://server:8000
working_dir: /e2e
volumes:
- ./client:/e2e
# command: ["./wait-for-it.sh", "server:8000", "-t", "60", "--", "npx", "cypress", "run"]
# command: ./wait-for-it.sh server:8000 -- echo "server is up"
# command: npx cypress run
# task-queue:
# build: "./server"
# For production we will need to set
# these variables to point to a standalone instance
# 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