-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-production.yml
48 lines (48 loc) · 1.17 KB
/
docker-compose-production.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
version: '3'
services:
app:
tty: true
image: openelections-app-production
build:
context: 'app'
dockerfile: 'Dockerfile.production'
ports:
- "4000:4000"
api:
tty: true # Enables debugging capabilities when attached to this container.
user: root
image: openelections-api-production
build:
context: 'api'
dockerfile: 'Dockerfile.production'
ports:
- "3000:3000"
environment:
- "DB_HOST="
- "DB_NAME="
- "DB_PORT=5432"
- "DB_USERNAME="
- "HOST_URL=openelectionsportland.org"
- "NODE_ENV=production"
- "PORT=3000"
- "DB_PASSWORD="
- "SECRET_KEY=bananas"
data:
image: openelections-datascience-production
build:
context: ./datascience
dockerfile: 'Dockerfile.production'
ports: ["8080:80"]
environment:
- "POSTGRES_USER="
- "POSTGRES_PASSWORD="
- "POSTGRES_DB="
- "POSTGRES_PORT=5432"
- "POSTGRES_HOST="
jobs:
image: openelections-jobs-production
tty: true # Enables debugging capabilities when attached to this container.
user: root
build:
context: 'api'
dockerfile: 'Dockerfile.jobs'