-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 828 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (37 loc) · 828 Bytes
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
version: "3.7"
services:
redis:
image: redis:latest
ports:
- 6379:6379
networks:
- ivapi_internal
api:
image: ivapi_api:latest
build:
context: .
depends_on:
- redis
environment:
- DB_HOST=${DB_HOST:-mysql}
- DB_USER=${DB_USER:-root}
- DB_PASS=${DB_PASS:-iverbs}
- DB_NAME=${DB_NAME:-ivapi_1}
- REDIS=redis:6379
- PORT=7000
- CACHE_DIRECTORY=${CACHE_DIRECTORY:-/var/ivapi/langcache}
ports:
- 7000:7000
networks:
- ivapi_bridge
- ivapi_internal
restart: on-failure
volumes:
- ${CACHE_DIRECTORY_HOST}:${CACHE_DIRECTORY:-/var/ivapi/langcache}
networks:
ivapi_bridge:
driver: bridge
driver_opts:
com.docker.network.bridge.name: ivapi-bridge
ivapi_internal:
driver: bridge