-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·109 lines (108 loc) · 3.13 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
108
109
version: "3.7"
services:
postgres:
container_name: evoks_${INSTANCE_NAME:-defaultinstance}_postgres
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
PGDATA: /data/postgres
POSTGRES_DB: dev
volumes:
- postgres:/data/postgres
networks:
- postgres
restart: unless-stopped
web:
container_name: evoks_${INSTANCE_NAME:-defaultinstance}_web
build:
context: "."
# caution, don't change this port since it is the one used within the container
# to change port, use the "ports:" section
command: >
sh -c "python ./evoks/manage.py migrate &&
python ./evoks/manage.py runserver 0.0.0.0:8000"
ports:
- "${EVOKS_PORT:-8000}:8000"
depends_on:
- postgres
- fuseki-dev
- fuseki-live
networks:
- postgres
- fuseki-dev
- fuseki-live
volumes:
- .:/code
- ./skosmos-dev/config.ttl:/code/skosmos-dev/config.ttl
- ./skosmos-live/config.ttl:/code/skosmos-live/config.ttl
- ./fuseki-dev/backup:/code/fuseki-dev/backup
restart: unless-stopped
fuseki-dev:
container_name: evoks_${INSTANCE_NAME:-defaultinstance}_fuseki-dev
image: secoresearch/fuseki
hostname: fuseki-dev
environment:
ADMIN_PASSWORD: ${FUSEKI_PASSWORD:-fuseki_password}
ENABLE_DATA_WRITE: 'True'
ENABLE_UPDATE: 'True'
ENABLE_UPLOAD: 'True'
volumes:
- ./fuseki-dev/data:/fuseki-base/databases
- ./fuseki-dev/config:/fuseki-base/configuration
- ./fuseki-dev/backup:/fuseki-base/backups
networks:
- fuseki-dev
fuseki-live:
container_name: evoks_${INSTANCE_NAME:-defaultinstance}_fuseki-live
image: secoresearch/fuseki
hostname: fuseki-live
environment:
ADMIN_PASSWORD: ${FUSEKI_PASSWORD:-fuseki_password}
ENABLE_DATA_WRITE: 'True'
ENABLE_UPDATE: 'True'
ENABLE_UPLOAD: 'True'
volumes:
- ./fuseki-live/data:/fuseki-base/databases
- ./fuseki-live/config:/fuseki-base/configuration
- ./fuseki-live/backup:/fuseki-base/backups
networks:
- fuseki-live
skosmos-dev:
container_name: evoks_${INSTANCE_NAME:-defaultinstance}_skosmos-dev
build:
context: https://github.com/NatLibFi/Skosmos.git#v2.17
dockerfile: dockerfiles/Dockerfile.ubuntu
ports:
- "${SKOSMOS_DEV_PORT:-8001}:80"
hostname: skosmos-dev
depends_on:
- fuseki-dev
networks:
- fuseki-dev
volumes:
- ./skosmos-dev/config.ttl:/var/www/html/config.ttl
skosmos-live:
container_name: evoks_${INSTANCE_NAME:-defaultinstance}_skosmos-live
build:
context: https://github.com/NatLibFi/Skosmos.git#v2.17
dockerfile: dockerfiles/Dockerfile.ubuntu
ports:
- "${SKOSMOS_LIVE_PORT:-8002}:80"
hostname: skosmos-live
depends_on:
- fuseki-live
networks:
- fuseki-live
volumes:
- ./skosmos-live/config.ttl:/var/www/html/config.ttl
networks:
postgres:
driver: bridge
fuseki-dev:
driver: bridge
fuseki-live:
driver: bridge
volumes:
postgres:
fuseki: