-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (55 loc) · 1.27 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
version: '3.7'
services:
eventer-base:
build:
context: .
dockerfile: Dockerfile.base
image: eventer-base:latest
eventer-prod:
build:
context: .
dockerfile: Dockerfile.prod
args:
- HASH_ID_SALT
- GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET
- GUARDIAN_SECRET_KEY
image: disappearer/eventer
ports:
- 4000:4000
environment:
SECRET_KEY_BASE:
DATABASE_URL: 'ecto://db_user:${POSTGRES_PASSWORD}@db/eventer'
HASH_ID_SALT:
GOOGLE_CLIENT_ID:
GOOGLE_CLIENT_SECRET:
GUARDIAN_SECRET_KEY:
depends_on:
- eventer-db-prod
eventer-db-prod:
image: postgres:12-alpine
restart: always
ports:
- 5432:5432
environment:
POSTGRES_DB: eventer
POSTGRES_USER: db_user
POSTGRES_PASSWORD:
eventer-test:
build:
context: .
dockerfile: Dockerfile.test
args:
- HASH_ID_SALT
environment:
DATABASE_URL: 'ecto://postgres:postgres@eventer-db-test/eventer_test'
HASH_ID_SALT:
depends_on:
- eventer-db-test
command: './run-tests'
eventer-db-test:
image: postgres:12-alpine
environment:
POSTGRES_DB: eventer_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres