-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
99 lines (98 loc) · 2.54 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
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
97
98
99
version: '3.8'
services:
ui:
build:
context: ./ui
dockerfile: Dockerfile.dev
volumes:
- ./ui:/app
issuer:
container_name: ebsi-issuer-dev
build:
context: ./web
dockerfile: Dockerfile.dev
expose:
- 7000
environment:
DEBUG: 1
PORT: 7000
DATABASE: postgres
SQL_DATABASE: diplomas_db
SQL_USER: diplomas_db_user
SQL_PASSWORD: diplomas_db_password
SQL_ENGINE: django.db.backends.postgresql
SQL_HOST: diplomas-db
SQL_PORT: 5432
CACHE_HOST: diplomas_cache
CACHE_PORT: 11211
GOOGLE_CLIENT_ID: ${EBSI_DIPLOMAS_GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${EBSI_DIPLOMAS_GOOGLE_CLIENT_SECRET}
GOOGLE_TOKEN_URL: 'https://www.googleapis.com/oauth2/v4/token'
GOOGLE_AUTHORIZE_URL: 'https://accounts.google.com/o/oauth2/v2/auth'
GOOGLE_API_BASE_URL: 'https://www.googleapis.com/'
GOOGLE_SERVER_METADATA_URL: 'https://accounts.google.com/.well-known/openid-configuration'
GOOGLE_SCOPE: 'openid profile email'
volumes:
- ./web:/home/dev/app
- ./storage/issuer:/home/dev/storage
- ./ssi-lib/commands:/usr/local/sbin
depends_on:
- diplomas_postgres
- memcached
verifier:
container_name: ebsi-verifier-dev
build:
context: ./web
dockerfile: Dockerfile.dev
ports:
- 7001:7001
expose:
- 7001
environment:
DEBUG: 1
PORT: 7001
DATABASE: postgres
SQL_DATABASE: diplomas_db
SQL_USER: diplomas_db_user
SQL_PASSWORD: diplomas_db_password
SQL_ENGINE: django.db.backends.postgresql
SQL_HOST: diplomas-db
SQL_PORT: 5432
CACHE_HOST: memcached
CACHE_PORT: 11211
volumes:
- ./web:/home/dev/app
- ./storage/verifier:/home/dev/storage
- ./ssi-lib/commands:/usr/local/sbin
depends_on:
- diplomas_postgres
- memcached
diplomas_postgres:
container_name: diplomas-db
image: postgres:14.0-alpine
volumes:
- diplomas_postgres_data:/var/lib/postgresql/data/
environment:
POSTGRES_DB: diplomas_db
POSTGRES_USER: diplomas_db_user
POSTGRES_PASSWORD: diplomas_db_password
memcached:
container_name: diplomas_cache
image: memcached:1.6
ports:
- "127.0.0.1:11211:11211"
entrypoint:
- memcached
- -m 64
nginx:
container_name: nginx-dev
build:
context: ./nginx
dockerfile: Dockerfile.dev
ports:
- "1337:80"
depends_on:
- issuer
- ui
volumes:
diplomas_postgres_data: