19 lines
444 B
YAML
19 lines
444 B
YAML
version: "3"
|
|
|
|
services:
|
|
${REPO_NAME_SNAKE}:
|
|
image: ${REPO_OWNER}/${REPO_NAME_SNAKE}:latest
|
|
container_name: ${REPO_NAME_SNAKE}
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8000"
|
|
links:
|
|
- ${REPO_NAME_SNAKE}_db
|
|
env_file: .env
|
|
${REPO_NAME_SNAKE}_db:
|
|
image: mariadb:latest
|
|
container_name: ${REPO_NAME_SNAKE}_db
|
|
restart: unless-stopped
|
|
volumes:
|
|
- "./database:/var/lib/mysql"
|
|
env_file: .env
|