-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
28 lines (27 loc) · 976 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
########################################################
# Docker Compose: https://docs.docker.com/compose
########################################################
# This file is for local testing
# - Copy contents to `docker-compose.override.yml`
# - Update the volume and environment variable values
# - BUILD: docker-compose build
# - BUILD AND RUN: docker-compose up --build
########################################################
version: '3'
services:
postgres-restore-from-s3:
image: postgres-restore-from-s3:9.6.10
network_mode: 'host'
build:
context: ./
dockerfile: ./Dockerfile
args:
pg_alpine_branch: '3.6'
pg_version: '9.6.10-r0'
environment:
AWS_BUCKET: <AWS_BUCKET_NAME>
AWS_REGION: <AWS_REGION_NAME>
DATABASE_URL: postgres://<DB_NAME>:<PASSPHRASE>@<HOST>:<PORT>/<DB_NAME>
DUMP_OBJECT_PREFIX: <DB_NAME>/postgres/
volumes:
- <PROJECT_DIRECTORY>/build/postgres/dump:/cache:rw