Skip to content

Commit 44c4cd6

Browse files
committed
cern openstack compose
1 parent a2c509b commit 44c4cd6

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

cernopenstack-compose.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
version: '2'
2+
services:
3+
postgres:
4+
restart: always
5+
image: postgres:latest
6+
volumes:
7+
- /home/recast/frontenddata:/pgdata
8+
environment:
9+
- PGDATA=/pgdata
10+
ports:
11+
- 5432:5432
12+
13+
redis:
14+
restart: always
15+
image: redis:latest
16+
17+
celeryworker:
18+
image: recastfrontend
19+
command: 'recast-frontend celery --config /configvolume/config.yml'
20+
volumes:
21+
- /home/recast/frontendconfig:/configvolume
22+
environment:
23+
- C_FORCE_ROOT=yes
24+
links:
25+
- redis
26+
27+
recastfrontend:
28+
image: recastfrontend
29+
command: 'recast-frontend server --config /configvolume/config.yml'
30+
ports:
31+
- "80:5000"
32+
volumes:
33+
- /home/recast/frontendconfig:/configvolume
34+
links:
35+
- postgres
36+
- redis
37+
- api
38+
39+
api:
40+
command: bash -c 'sleep 10 && recast-api server --config /configvolume/config.yml'
41+
image: recastrestapi
42+
volumes:
43+
- /home/recast/frontendconfig:/configvolume
44+
ports:
45+
- "81:5000"
46+
links:
47+
- postgres

0 commit comments

Comments
 (0)