forked from code4romania/redirectioneaza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dkcp.base.yml
40 lines (36 loc) · 889 Bytes
/
dkcp.base.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
version: '3.9'
services:
redirect_base:
container_name: redirect
env_file:
- .env
environment:
- "PYTHONUNBUFFERED=1"
restart: on-failure
db_base_mysql:
image: mysql:8.2.0
restart: always
env_file:
- .env
volumes:
- redirect_mysql:/var/lib/mysql
environment:
MYSQL_DATABASE: "${DATABASE_NAME}"
MYSQL_USER: "${DATABASE_USER}"
MYSQL_PASSWORD: "${DATABASE_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${DATABASE_PASSWORD}"
ports:
- "${DATABASE_PORT:-3306}:3306"
db_base_psql:
image: postgres:16.1
restart: always
env_file:
- .env
volumes:
- redirect_psql:/var/lib/postgresql/data
environment:
POSTGRES_DB: "${DATABASE_NAME}"
POSTGRES_USER: "${DATABASE_USER}"
POSTGRES_PASSWORD: "${DATABASE_PASSWORD}"
ports:
- "${DATABASE_PORT:-5432}:5432"