-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.prod.yml
53 lines (48 loc) · 1.03 KB
/
docker-compose.prod.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
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/entrypoint
depends_on:
- postgres
environment:
MIX_ENV: prod
env_file:
- .env
networks:
- artemis_network
ports:
- ${ARTEMIS_API_PORT}:${ARTEMIS_API_PORT}
- ${ARTEMIS_WEB_PORT}:${ARTEMIS_WEB_PORT}
restart: unless-stopped
networks:
artemis_network:
driver: bridge
volumes:
couchdb_data:
postgres_data: