forked from EFForg/starttls-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (35 loc) · 939 Bytes
/
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
version: '2.1'
services:
postgres:
build: db/
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
environment:
POSTGRES_DB: $DB_NAME
POSTGRES_USER: $DB_USERNAME
POSTGRES_PASSWORD: $DB_PASSWORD
postgres_test:
build: db/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
env_file:
- .env.test
environment:
POSTGRES_DB: starttls_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
app:
build: .
volumes:
- .:/go/src/github.com/EFForg/starttls-backend
ports:
- 8080:8080
depends_on:
postgres:
condition: service_healthy
postgres_test:
condition: service_healthy
env_file:
- .env