2023-02-18 19:01:13 +03:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
2023-03-03 17:10:17 +03:00
|
|
|
|
2023-03-24 18:00:31 +03:00
|
|
|
app:
|
2023-03-24 18:55:15 +03:00
|
|
|
image: ${REPO_OWNER_LOWER}/${REPO_NAME_KEBAB}:latest
|
|
|
|
container_name: ${REPO_NAME_KEBAB}-app
|
2023-02-18 19:01:13 +03:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "8080:8000"
|
|
|
|
links:
|
2023-03-24 18:00:31 +03:00
|
|
|
- database
|
2023-02-18 19:01:13 +03:00
|
|
|
env_file: .env
|
2023-03-03 17:10:17 +03:00
|
|
|
|
2023-03-24 18:00:31 +03:00
|
|
|
database:
|
2023-03-24 18:55:15 +03:00
|
|
|
image: linuxserver/mariadb:latest
|
|
|
|
container_name: ${REPO_NAME_KEBAB}-db
|
2023-02-18 19:01:13 +03:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2023-03-10 16:17:23 +03:00
|
|
|
#- "./database:/var/lib/mysql"
|
2023-03-24 18:55:15 +03:00
|
|
|
- "database:/var/lib/mysql"
|
2023-03-03 17:10:17 +03:00
|
|
|
env_file: .env_db
|
2023-03-24 18:55:15 +03:00
|
|
|
# Uncomment if needed
|
|
|
|
#healthcheck:
|
|
|
|
# test: sh -c "mysqladmin ping -u$$$$MYSQL_USER -p$$$$MYSQL_PASSWORD"
|
|
|
|
# interval: 2s
|
|
|
|
# timeout: 3s
|
|
|
|
# retries: 20
|
2023-03-10 16:17:23 +03:00
|
|
|
|
2023-03-24 18:00:31 +03:00
|
|
|
# Comment or remove these lines and
|
|
|
|
# edit `volumes` in services->database
|
|
|
|
# if you are going to store
|
|
|
|
# your DB in a directory
|
2023-03-10 16:17:23 +03:00
|
|
|
volumes:
|
2023-03-24 18:55:15 +03:00
|
|
|
database:
|