-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (37 loc) · 941 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
36
37
38
39
version: "3.7"
services:
db:
restart: always
build:
context: docker
dockerfile: database.Dockerfile
args:
POSTGRES_VERSION: ${POSTGRES_VERSION}
volumes:
- db:/var/lib/postgresql/data
ports:
- 5499:5432
environment:
POSTGRES_PASSWORD: postgres
migrate:
restart: always
build:
context: docker
dockerfile: migrate.Dockerfile
args:
NODEJS_VERSION: ${NODEJS_VERSION}
POSTGRES_VERSION: ${POSTGRES_VERSION}
volumes:
- ./:/repo
environment:
DATABASE_URL: postgres://postgres:postgres@db/vanderbot
SHADOW_DATABASE_URL: postgres://postgres:postgres@db/vanderbot_shadow
ROOT_DATABASE_URL: postgres://postgres:postgres@db/postgres
depends_on:
- db
entrypoint: ["/usr/local/bin/graphile-migrate", "watch"]
init: true
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
db: