-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (35 loc) · 990 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
version: "3.3"
services:
scriptables-redis:
container_name: scriptables-redis
image: redis:6.2-alpine
restart: always
command: redis-server --save 20 1 --loglevel warning
volumes:
- scriptables-redis:/data
ports:
- 127.0.0.1:6379:6379
scriptables-mysqldb:
container_name: scriptables-db
image: mariadb:10.4
restart: always
env_file: .env
volumes:
- ./build/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- ./build/mysql/server.cnf:/etc/mysql/mariadb.conf.d/server.cnf
- scriptables-mysqldb:/var/lib/mysql
scriptables-server:
container_name: scriptables-server
restart: always
env_file: .env
build:
context: .
dockerfile: ./Dockerfile
ports:
- "${SCRIPTABLES_SERVER_DSN_HOST}:${SCRIPTABLES_SERVER_DSN_PORT}:${SCRIPTABLES_SERVER_DSN_PORT}"
depends_on:
- scriptables-redis
- scriptables-mysqldb
volumes:
scriptables-mysqldb:
scriptables-redis: