-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (59 loc) · 1.32 KB
/
docker-compose.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
---
version: "3"
services:
postgres:
restart: always
image: postgres:10.0
environment:
- EIPS_DB_URL=${EIPS_DB_URL}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
expose:
- "5432/tcp"
ports:
- "5432:5432"
graphql:
build:
context: .
dockerfile: ./ops/dockerfiles/eips_api
depends_on:
- postgres
environment:
- EIPS_DB_URL=${EIPS_DB_URL}
- EIPS_SERVER_PORT=8080
- EIPS_LOCAL_REPO=/tmp/eips
expose:
- "8080/tcp"
ports:
- "8080:8080"
processor:
build:
context: .
dockerfile: ./ops/dockerfiles/eips_processor
depends_on:
- postgres
- graphql # migrations are run there
environment:
- EIPS_DB_URL=${EIPS_DB_URL}
- EIPS_SERVER_PORT=8080
- EIPS_LOCAL_REPO=/tmp/eips
frontend:
build:
context: .
dockerfile: ./ops/dockerfiles/eips_frontend
args:
GRAPHQL_URL: http://localhost:8080/graphql
depends_on:
- graphql
expose:
- "5000/tcp"
nginx:
image: nginx:mainline
volumes:
- ./ops/conf/nginx.conf:/etc/nginx/nginx.conf
- /etc/letsencrypt:/etc/letsencrypt #
- /var/www/certbot:/var/www/certbot
ports:
- "80:80"
- "443:443"