-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
102 lines (96 loc) · 2.68 KB
/
docker-compose.dev.yml
File metadata and controls
102 lines (96 loc) · 2.68 KB
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
volumes:
ckan_storage_dev:
pg_data_dev:
solr_data_dev:
pip_cache_dev_py310:
site_packages_dev_py310:
local_bin_dev_py310:
home_dir_dev:
services:
change-vol-ownership:
# We can use any image we want as long as we can chown
image: busybox
# Need a user priviliged enough to chown
user: "root"
# Specify the group in question
group_add:
- "502"
volumes:
# The volume to chown
- ./src:/srv/app/src_extensions
#command: sh -c 'chown -R :502 /srv/app/src_extensions && find /srv/app/src_extensions -type d -exec chmod 775 {} + && find /srv/app/src_extensions -type f -exec chmod 664 {} +'
# command: sh -c 'chown -R :502 /srv/app/src_extensions && find /srv/app/src_extensions -type d -exec chmod 775 {} +'
command: sh -c 'echo "disabled"'
ckan-dev:
platform: linux/amd64
build:
context: ckan/
dockerfile: Dockerfile.dev
args:
- TZ=UTC
extra_hosts:
- "ckan.tacc.cloud:127.0.0.1"
env_file:
- .env.dev.config
- .env.dev.secrets
links:
- db
- solr
- redis
ports:
- "0.0.0.0:5000:5000"
volumes:
- ckan_storage_dev:/var/lib/ckan
- ./src:/srv/app/src_extensions
- ./src/ckanext-oauth2:/srv/app/src_extensions/ckanext-oauth2
- pip_cache_dev_py310:/root/.cache/pip
- site_packages_dev_py310:/usr/local/lib/python3.10/site-packages
- local_bin_dev_py310:/usr/local/bin
- home_dir_dev:/srv/app/
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5000"]
interval: 60s
timeout: 10s
retries: 3
depends_on:
- change-vol-ownership
datapusher:
platform: linux/amd64
image: ckan/ckan-base-datapusher:0.0.20
env_file:
- .env.dev.config
- .env.dev.secrets
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:8800"]
interval: 60s
timeout: 10s
retries: 3
db:
platform: linux/amd64
ports:
- 5432:5432
build:
context: postgresql/
env_file:
- .env.dev.config
- .env.dev.secrets
volumes:
- pg_data_dev:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"]
solr:
platform: linux/amd64
image: ckan/ckan-solr:2.11-solr9-spatial
volumes:
- solr_data_dev:/var/solr
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:8983/solr/"]
redis:
image: redis:6
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "-e", "QUIT"]