-
Notifications
You must be signed in to change notification settings - Fork 72
/
docker-compose.override.yml
136 lines (130 loc) · 4.04 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# overrides for local development, not used in CI
services:
web:
build:
context: .
dockerfile: perma_web/Dockerfile
x-bake:
tags:
- registry.lil.tools/harvardlil/perma-web:129-f2b07d94d3ab843bcf4afb6f753b2e70
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-redis:
image: registry.lil.tools/library/redis:7.0
volumes:
- scoop_redis_data:/data:delegated
networks:
- scoop_rest_api_internal
scoop-db:
image: registry.lil.tools/library/postgres:16.3
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: scoop_api
POSTGRES_USER: scoop
volumes:
- scoop_postgres_data:/var/lib/postgresql/data:delegated
networks:
- scoop_rest_api_internal
scoop-rest-api:
image: registry.lil.tools/harvardlil/scoop-rest-api:124-f89c580766f587f5156b10f873972ea8
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=scoop
- DATABASE_PASSWORD=password
- DATABASE_HOST=scoop-db
- DATABASE_PORT=5432
- DATABASE_NAME=scoop_api
- START_CRON=true # false|true
- START_FLASK_SERVER=true # false|true
- START_CELERY=true # false|true
- 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:19-feb5e21507118e85975cc35a5e15c5c4
# 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
superset:
build:
context: ./services/docker/superset
dockerfile: Dockerfile
environment:
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=admin
- DATABASE_NAME=perma-db
- SQLALCHEMY_URI=postgresql+psycopg2://perma:password@db:5432/perma
ports:
- "127.0.0.1:8088:8088"
depends_on:
- db
networks:
- superset
volumes:
- superset_data:/app/superset_home
- ./services/docker/superset/superset-init.sh:/superset-init.sh
- ./services/docker/superset/superset_config.py:/app/superset_config.py
- ./services/docker/superset/dashboard_export.zip:/app/dashboard_export.zip
entrypoint: ["/bin/bash", "/superset-init.sh"]