-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathdocker-compose.override.yml
54 lines (52 loc) · 1.54 KB
/
docker-compose.override.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
# overrides for local development, not used in CI
version: '3'
services:
web:
build:
context: .
dockerfile: perma_web/Dockerfile
x-bake:
tags:
- registry.lil.tools/harvardlil/perma-web:26-cb7a270eedc83fc304e684cfdbba0cbe
platforms:
- linux/amd64
- linux/arm64
x-hash-paths:
- perma_web/requirements.txt
- perma_web/npm-shrinkwrap.json
- perma_web/package.json
- perma_web/perma-warcprox-ca.pem
- perma_web/lil-archive-keyring.gpg
#
# Perma Payments
#
pp_db:
image: registry.lil.tools/library/postgres:12.8
environment:
- POSTGRES_PASSWORD=example
volumes:
- pp_db_data:/var/lib/postgresql/data:delegated
networks:
- perma_payments
perma-payments:
image: registry.lil.tools/harvardlil/perma-payments:0.37
# hack: sleep to give the database time to start up
command: >
sh -c "sleep 5 && ./manage.py migrate && fab run"
ports:
- "127.0.0.1:80:80"
depends_on:
- pp_db
environment:
- DOCKERIZED=True
- DJANGO__DATABASES__default__HOST=pp_db
# TO CUSTOMIZE CONFIG:
# copy ./services/docker/perma-payments/settings.py.example
# to ./services/docker/perma-payments/settings.py,
# alter config as desired, in the usual way, then comment in this volume
# and re-run docker-compose up
# volumes:
# - ./services/docker/perma-payments/settings.py:/perma-payments/config/settings/settings.py
networks:
- default
- perma_payments