-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (60 loc) · 1.24 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
version: '3'
services:
nginx:
build:
context: ./frontend
args:
- api_server=http://api:80
volumes:
- "./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro"
ports:
- "80:80"
- "5984:5984"
links:
- rabbitmq
- couchdb
- api
restart: always
rabbitmq:
image: rabbitmq
ports:
- "35197:35197"
- "4369:4369"
- "5671:5671"
- "5672:5672"
volumes:
- "./config/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf"
- "./config/rabbitmq/enabled_plugins:/etc/rabbitmq/enabled_plugins"
restart: always
couchdb:
image: couchdb
volumes:
- "./data/couchdb/:/opt/couchdb/data"
env_file: config/config.env
restart: always
postgres:
image: postgres
volumes:
- "./data/postgres/:/var/lib/postgresql/data"
env_file: config/config.env
ports:
- 5432:5432
restart: always
api:
build:
context: ./api
args:
- POSTGRES_PASSWORD
volumes:
- "./api/:/app"
env_file: config/config.env
environment:
- MIX_ENV=dev
restart: always
ports:
# Expose our API server on localhost:888, so our local dev frontend can use it
- 888:80
depends_on:
- rabbitmq
- couchdb
- postgres