-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
56 lines (53 loc) · 1.25 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
services:
api:
env_file:
- ./api/.env
build:
target: api
ports:
- "0.0.0.0:${CONDUCTOR_EXTERNAL_PORT}:${CONDUCTOR_INTERNAL_PORT}"
volumes:
- ./api/src:/usr/src/api/src
- ./api/views:/usr/src/api/views
- ./api/keys:/usr/src/api/keys
- ./api/public:/usr/src/api/public
- ./api/test:/usr/src/api/test
- ./api/.env:/usr/src/api/.env
command: npm run watch-api
depends_on:
- couchdb
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:${CONDUCTOR_INTERNAL_PORT}/" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
app:
env_file:
- ./app/.env
build:
target: app
ports:
- "3000:3000"
volumes:
- ./app/assets:/usr/src/app/assets
- ./app/public:/usr/src/app/public
- ./app/.env:/usr/src/app/.env
- ./app/src:/usr/src/app/src
command: npm run start-app -- --force
depends_on:
- api
couchdb:
env_file:
- ./api/.env
build:
context: api/couchdb
dockerfile: Dockerfile
volumes:
- type: volume
source: couchdb_data
target: /opt/couchdb/data
ports:
- "0.0.0.0:${COUCHDB_EXTERNAL_PORT}:5984"
volumes:
couchdb_data: