forked from harvard-lil/perma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
110 lines (105 loc) · 3.36 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# 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:105-28fef2ca2ecd1c74ba3059f0b59a4d34
platforms:
- linux/amd64
- linux/arm64
x-hash-paths:
- perma_web/requirements.txt
- perma_web/npm-shrinkwrap.json
- perma_web/package.json
- perma_web/lil-archive-keyring.gpg
wacz-exhibitor:
build:
context: ./services/docker/wacz-exhibitor
args:
RELEASE: v0.1.7
x-bake:
tags:
- registry.lil.tools/harvardlil/wacz-exhibitor:5-14853706630a07e835ebb9da840ece83
platforms:
- linux/amd64
- linux/arm64
x-hash-paths:
- ./nginx.conf
#
# Scoop REST API
#
scoop-db:
image: registry.lil.tools/library/mariadb:10.6.14
environment:
- MARIADB_ROOT_PASSWORD=password
- MARIADB_DATABASE=scoop_api
volumes:
# If the volume contains a database (a subdirectory named mysql)
# when you start the container, it will be left untouched and unaffected
# by config environment variables like $MARIADB_ROOT_PASSWORD.
- scoop_db_data:/var/lib/mysql:delegated
networks:
- scoop_rest_api_internal
scoop-rest-api:
image: registry.lil.tools/harvardlil/scoop-rest-api:52-e3380f176e1e3860b6590e4cba87f714
init: true
tty: true
depends_on:
- scoop-db
ports:
- "127.0.0.1:5000:5000"
environment:
- API_DOMAIN=http://scoop-rest-api:5000
- DATABASE_USERNAME=root
- DATABASE_PASSWORD=password
- DATABASE_HOST=scoop-db
- DATABASE_PORT=3306
- DATABASE_NAME=scoop_api
- START_CRON=true # false|true
- START_FLASK_SERVER=true # false|true
- START_CAPTURE_PROCESSES=parallel # none|single|parallel
- DISPLAY=:99 # Run Xvfb with the below virtual display number
- CREATE_ACCESS_KEY_WITH_LABEL=dev # create a new access key each time the container starts
volumes:
- scoop_access_key:/app/docker/access_keys:delegated
- ./services/docker/scoop-rest-api/config.py:/app/scoop_rest_api/config.py
networks:
- scoop_rest_api
- scoop_rest_api_internal
#
# 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:13-c18c3f7490132fdb7180f75751c662e7
# hack: sleep to give the database time to start up
command: >
sh -c "sleep 5 && ./manage.py migrate && invoke run"
ports:
- "127.0.0.1:80:80"
depends_on:
- pp_db
environment:
- DJANGO__DATABASES__default__HOST=pp_db
- DOCKERIZED=true
# 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:/app/web/config/settings/settings.py
networks:
- default
- perma_payments