-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdocker-compose.base.yml
59 lines (52 loc) · 1.25 KB
/
docker-compose.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: redirect_base
services:
redirect_dev_base:
extends:
file: docker-compose.base.yml
service: redirect_base
build:
context: .
dockerfile: ./docker/dockerfiles/Dockerfile.dev
volumes:
- ./backend:/var/www/redirect/backend
env_file:
- .env
ports:
- "${WEBAPP_PORT:-8080}:8000"
redirect_base:
container_name: redirect_dev
env_file:
- .env
environment:
- "PYTHONUNBUFFERED=1"
restart: on-failure
db_base:
container_name: redirect_db_dev
env_file:
- .env
restart: always
db_base_mysql:
extends:
service: db_base
image: mysql:8.3
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:
extends:
service: db_base
image: postgres:16.2
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"