-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.dev.yml
58 lines (53 loc) · 1.14 KB
/
docker-compose.dev.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
version: "3.7"
services:
couchdb:
image: couchdb:2
environment:
COUCHDB_USER: couchdb
COUCHDB_PASSWORD: couchdb
networks:
- artemis_network
restart: unless-stopped
volumes:
- type: volume
source: couchdb_data
target: "/opt/couchdb/data"
postgres:
image: postgres:11.1
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /var/lib/postgresql/data/pgdata
networks:
- artemis_network
restart: unless-stopped
volumes:
- type: volume
source: postgres_data
target: "/var/lib/postgresql/data"
server:
build: .
command: /app/source/bin/docker-dev/entrypoint
depends_on:
- couchdb
- postgres
environment:
MIX_ENV: dev
env_file:
- .env
networks:
- artemis_network
ports:
- ${ARTEMIS_API_PORT}:${ARTEMIS_API_PORT}
- ${ARTEMIS_WEB_PORT}:${ARTEMIS_WEB_PORT}
restart: unless-stopped
volumes:
- type: bind
source: .
target: "/app/source"
networks:
artemis_network:
driver: bridge
volumes:
couchdb_data:
postgres_data: