-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (52 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
52 lines (52 loc) · 1.27 KB
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
services:
banchonet:
image: banchonet
build:
context: .
dockerfile: Dockerfile
ports:
- ${SERVER_PORT}:5000
env_file:
- .env
volumes:
- "./data:/app/publish/.data"
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_started
MongoDB:
condition: service_started
mariadb:
image: mariadb
hostname: banchonet-mysql
environment:
MARIADB_DATABASE: ${MYSQL_DB}
MARIADB_USER: ${MYSQL_USER}
MARIADB_PASSWORD: ${MYSQL_PASS}
MARIADB_ROOT_PASSWORD: ${MYSQL_PASS}
MARIADB_PORT: ${MYSQL_PORT}
MARIADB_HOST: ${MYSQL_HOST}
ports:
- ${MYSQL_PORT}:${MYSQL_PORT}
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 2s
timeout: 20s
retries: 10
redis:
image: redis
hostname: banchonet-redis
environment:
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REDIS_PASSWORD: ${REDIS_PASS}
MongoDB:
image: mongo
hostname: banchonet-mongo
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASS}
MONGO_INITDB_DATABASE: ${MONGO_DB}
ports:
- ${MONGO_PORT}:${MONGO_PORT}