forked from Social-projects-Rivne/Event.me
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (61 loc) · 1.6 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
version: '3.1'
services:
pyramid:
build: .
container_name: pyramid
command: bash -c "pip install -e /app/server/ && pserve /app/server/development.ini --reload"
volumes:
- .:/app
depends_on:
- db
- mongo
ports:
- "6543:6543"
db:
image: postgres:9.6
restart: always
container_name: eventme_postgres
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: 1
POSTGRES_DB: eventme
volumes:
- ~/.eventme-postgres:/var/lib/postgresql/data
ports:
- 5555:5432
mongo:
image: mongo:latest
restart: always
container_name: mongo
ports:
- 27017:27017
volumes:
- ~/.eventme-mongo:/data/db
mongoUser:
image: mongo:latest
container_name: mongoUser
restart: on-failure:2
links:
- mongo:mongo
command: mongo --host mongo --eval "db.getSiblingDB('eventme').createUser({user:'admin', pwd:'1', roles:[{role:'readWrite',db:'eventme'}]});"
depends_on:
- mongo
adminer:
image: dockette/adminer:full-php5
restart: always
depends_on:
- db
- mongo
ports:
- 9000:80
client:
image: node:10
container_name: react
command: bash -c "npm install && npm start"
working_dir: /app/client
volumes:
- ./client:/app/client
depends_on:
- pyramid
ports:
- "3000:3000"