-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-qa.yml
93 lines (93 loc) · 2.22 KB
/
docker-compose-qa.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
version: "3"
services:
app:
tty: true
build:
context: "app"
dockerfile: "Dockerfile"
environment:
- PORT=4000
- NODE_ENV=development
ports:
- 4000:4000
# networks:
# - openelections
volumes:
- ./app:/app
api:
tty: true # Enables debugging capabilities when attached to this container.
user: root
build:
context: "api"
dockerfile: "Dockerfile.qa"
env_file:
- .env.qa
depends_on:
- redis
# - data
ports:
- 3000:3000
volumes:
- ./api/controller:/app/controller
- ./api/models:/app/models
- ./api/routes:/app/routes
- ./api/services:/app/services
- ./api/test:/app/test
- ./api/types:/app/types
- ./api/jobs:/app/jobs
- ./api/.nvmrc:/app/.nvmrc
- ./api/app.ts:/app/app.ts
- ./api/package.json:/app/package.json
- ./api/tsconfig.json:/app/tsconfig.json
# networks:
# - openelections
redis:
image: redis
ports: ["6379:6379"]
# networks:
# - openelections
# networks:
# openelections:
# data:
# build:
# context: ./datascience
# volumes:
# - ./datascience:/app
# ports: ["8080:80"]
# env_file:
# - .env.qa
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=password
# - POSTGRES_DB=open_elections_dev
# - POSTGRES_PORT=5432
# - POSTGRES_HOST=db
# - FLASK_ENV=development
# command: ["sh", "/app/openelections/api/start.sh"]
# networks:
# - openelections
jobs:
tty: true # Enables debugging capabilities when attached to this container.
user: root
build:
context: "api"
dockerfile: "Dockerfile.jobs"
env_file:
- .env.qa
depends_on:
- redis
- data
volumes:
- ./api/controller:/app/controller
- ./api/models:/app/models
- ./api/routes:/app/routes
- ./api/services:/app/services
- ./api/test:/app/test
- ./api/types:/app/types
- ./api/jobs:/app/jobs
- ./api/.nvmrc:/app/.nvmrc
- ./api/app.ts:/app/app.ts
- ./api/package.json:/app/package.json
- ./api/tsconfig.json:/app/tsconfig.json
# networks:
# - openelections