forked from ExposuresProvider/icees-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
40 lines (39 loc) · 919 Bytes
/
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
version: '3'
services:
db:
build:
context: .
dockerfile: db/Dockerfile
image: icees-api-db:0.5.0
container_name: ${ICEES_API_INSTANCE_NAME}-db
env_file:
- .env
environment:
CONFIG_PATH: /icees-api/config
ICEES_API_LOG_PATH: /log
DATA_PATH: /icees-api/db/data
volumes:
- $DB_PATH:/data
- $DATA_PATH:/icees-api/db/data
- $CONFIG_PATH:/icees-api/config
- $ICEES_API_LOG_PATH:/log
shm_size: 1g
restart: always
server:
build:
context: .
image: icees-api-server:0.5.0
container_name: ${ICEES_API_INSTANCE_NAME}-server
env_file:
- .env
restart: always
environment:
CONFIG_PATH: /icees-api/config
ICEES_API_LOG_PATH: /log
volumes:
- $CONFIG_PATH:/icees-api/config
- $ICEES_API_LOG_PATH:/log
depends_on:
- db
ports:
- "${ICEES_API_HOST_PORT}:8080"