-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (45 loc) · 1.05 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
version: '3'
services:
graphql:
build:
context: .
dockerfile: Dockerfile.graph
ports:
- '8080:8080'
volumes:
- ./:/app
depends_on:
- db
environment:
- DATABASE_URL=postgres://yourusername:yourpassword@db:5432/yourdatabase?sslmode=disable
- AUDIENCE_API=${AUDIENCE_API}
- AUDIENCE_HASH=${AUDIENCE_HASH}
- ENVIRONMENT=dev
- ISSUERURL=${ISSUERURL}
- SECRET_KEY=${SECRET_KEY}
db:
image: postgres
restart: always
ports:
- '5432:5432'
environment:
- POSTGRES_USER=yourusername
- POSTGRES_PASSWORD=yourpassword
- POSTGRES_DB=yourdatabase
db-migration:
image: postgres
restart: always
ports:
- '5431:5432'
environment:
- POSTGRES_USER=yourusername
- POSTGRES_PASSWORD=yourpassword
- POSTGRES_DB=migration
pgadmin:
image: dpage/pgadmin4
restart: unless-stopped
ports:
- '5050:80'
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: yourpassword