services-garbaye/podman-framadate/docker-compose.yml
2022-02-12 18:45:54 +01:00

42 lines
1 KiB
YAML

version: '3'
services:
framadate-db:
container_name: framadate-db
image: docker.io/library/mysql:5.7
environment:
- MYSQL_USER=framadate
- MYSQL_DATABASE=framadate
env_file:
- .env
restart: always
volumes:
- framadate-db:/var/lib/mysql:Z
framadate-app:
container_name: framadate-app
build:
dockerfile: ./docker/Dockerfile
context: .
args:
version: "$framadate_release"
image: "framadate-app:${framadate_release}"
depends_on:
- db
ports:
- ${listen_if}:${listen_port}:80
environment:
- ENV=prod
- MYSQL_USER=framadate
- MYSQL_DB=framadate
- MYSQL_HOST=framadate-db
- MYSQL_PORT=3306
- ADMIN_USER=admin
- APACHE_RUN_USER=www-data
- FRAMADATE_DEVMODE=1
env_file:
- .env
restart: always
volumes:
framadate-db: