Created
November 25, 2022 17:44
-
-
Save Kovah/bd94e3e16dc81bbb44c12dc55734cbf3 to your computer and use it in GitHub Desktop.
Linkace Ansible 2022-11 - docker-compose.yml.j2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: "3" | |
services: | |
db: | |
image: mariadb:10.6 | |
restart: unless-stopped | |
environment: | |
- MARIADB_ROOT_PASSWORD=${DB_PASSWORD} | |
- MARIADB_USER=${DB_USERNAME} | |
- MARIADB_PASSWORD=${DB_PASSWORD} | |
- MARIADB_DATABASE=${DB_DATABASE} | |
volumes: | |
- db:/var/lib/mysql | |
app: | |
image: {{ docker_image }} | |
restart: unless-stopped | |
depends_on: | |
- db | |
ports: | |
- '127.0.0.1:{{ proxy_port }}:80' | |
volumes: | |
- ./.env:/app/.env | |
redis: | |
image: bitnami/redis:6.0 | |
restart: unless-stopped | |
environment: | |
- REDIS_PASSWORD=${REDIS_PASSWORD} | |
volumes: | |
db: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment