forked from usgs/shakecast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.74 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
version: '3'
services:
sc-server:
build:
context: .
dockerfile: sc-server.dockerfile
expose:
- "1981"
networks:
- sc-network
volumes:
- "~/pycast/db:/usr/local/shakecast/shakecast/db"
- "~/pycast/eq_data:/usr/local/shakecast/shakecast/data"
- "~/pycast/tmp:/usr/local/shakecast/shakecast/tmp"
- "~/pycast/conf:/usr/local/shakecast/shakecast/conf"
- "~/pycast/templates:/usr/local/shakecast/shakecast/templates"
- "~/pycast/logs:/usr/local/shakecast/shakecast/logs"
- "~/pycast/local_products:/usr/local/shakecast/shakecast/local_products"
- "~/pycast/assets:/usr/local/shakecast/shakecast/view/assets"
user: "${DOCKER_UID}:${DOCKER_GID}"
restart: unless-stopped
web-server:
build:
context: .
dockerfile: web-server.dockerfile
ports:
- "80:5000"
networks:
- sc-network
volumes:
- "~/pycast/db:/usr/local/shakecast/shakecast/db"
- "~/pycast/eq_data:/usr/local/shakecast/shakecast/data"
- "~/pycast/tmp:/usr/local/shakecast/shakecast/tmp"
- "~/pycast/conf:/usr/local/shakecast/shakecast/conf"
- "~/pycast/templates:/usr/local/shakecast/shakecast/templates"
- "~/pycast/logs:/usr/local/shakecast/shakecast/logs"
- "~/pycast/local_products:/usr/local/shakecast/shakecast/local_products"
- "~/pycast/assets:/usr/local/shakecast/shakecast/view/assets"
user: "${DOCKER_UID}:${DOCKER_GID}"
restart: unless-stopped
image-server:
image: shakecast/imaging
networks:
- sc-network
volumes:
- "~/pycast/local_products:/usr/local/shakecast/shakecast/local_products"
expose:
- "5000"
restart: unless-stopped
networks:
sc-network:
driver: bridge