-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
107 lines (95 loc) · 2.54 KB
/
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
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
version: '2.3'
x-project:
&project "${PROJECT}"
x-volumes:
&default-volumes
volumes:
- /app/ckan ### Local overrides to mount host filesystem. Automatically removed in CI and PROD.
- ./ckanext:/app/ckanext:${VOLUME_FLAGS:-delegated} ### Local overrides to mount host filesystem. Automatically removed in CI and PROD.
- ./test:/app/test:${VOLUME_FLAGS:-delegated} ### Local overrides to mount host filesystem. Automatically removed in CI and PROD.
##- /app/filestore # Override for environment without host mounts. Automatically uncommented in CI.
x-environment:
&default-environment
AMAZEEIO: AMAZEEIO
no_proxy: "ckan,postgres,postgres-datastore,redis,solr,chrome,mailhog.docker.amazee.io"
services:
ckan:
build:
context: .
dockerfile: .docker/Dockerfile.ckan
depends_on:
postgres:
condition: service_healthy
solr:
condition: service_started
networks:
- amazeeio-network
- default
ports:
- "5000"
image: *project
<<: *default-volumes
environment:
<<: *default-environment
AMAZEEIO_HTTP_PORT: 5000
LAGOON_LOCALDEV_URL: "http://${PROJECT}.docker.amazee.io"
AMAZEEIO_URL: "${PROJECT}.docker.amazee.io"
postgres:
image: ckan/ckan-postgres-dev:${CKAN_VERSION}
ports:
- "5432"
networks:
- amazeeio-network
- default
environment:
<<: *default-environment
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
postgres-datastore:
image: ckan/ckan-postgres-dev:${CKAN_VERSION}
ports:
- "5432"
networks:
- amazeeio-network
- default
environment:
<<: *default-environment
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
redis:
image: redis:6-alpine
environment:
<<: *default-environment
networks:
- amazeeio-network
- default
solr:
image: ckan/ckan-solr:${CKAN_VERSION}
ports:
- "8983"
environment:
<<: *default-environment
networks:
- amazeeio-network
- default
chrome:
image: selenium/standalone-chrome:3.141.59-oxygen
shm_size: '1gb'
depends_on:
- ckan
<<: *default-volumes
environment:
<<: *default-environment
networks:
- amazeeio-network
- default
extra_hosts:
# point some unnecessary domains at localhost
- "www.googletagmanager.com:127.0.0.1"
- "fonts.gstatic.com:127.0.0.1"
- "gravatar.com:127.0.0.1"
volumes:
solr-data: {}
networks:
amazeeio-network:
external: true