2021-05-26 19:54:40 +00:00
|
|
|
version: '3'
|
|
|
|
services:
|
2022-01-09 11:56:04 +00:00
|
|
|
framadate-db:
|
2021-05-26 19:54:40 +00:00
|
|
|
container_name: framadate-db
|
2022-01-09 11:56:04 +00:00
|
|
|
image: docker.io/library/mysql:5.7
|
2021-05-26 19:54:40 +00:00
|
|
|
environment:
|
|
|
|
- MYSQL_USER=framadate
|
|
|
|
- MYSQL_DATABASE=framadate
|
2022-01-09 11:56:04 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2021-05-26 19:54:40 +00:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- framadate-db:/var/lib/mysql:Z
|
|
|
|
|
|
|
|
framadate-app:
|
|
|
|
container_name: framadate-app
|
|
|
|
build:
|
2022-01-09 11:56:04 +00:00
|
|
|
dockerfile: ./docker/Dockerfile
|
|
|
|
context: .
|
|
|
|
args:
|
2022-02-12 17:45:54 +00:00
|
|
|
version: "$framadate_release"
|
2022-02-25 12:36:19 +00:00
|
|
|
image: "localhost/framadate-app:${framadate_release}"
|
2021-05-26 19:54:40 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
ports:
|
2022-02-11 13:02:39 +00:00
|
|
|
- ${listen_if}:${listen_port}:80
|
2021-05-26 19:54:40 +00:00
|
|
|
environment:
|
|
|
|
- ENV=prod
|
|
|
|
- MYSQL_USER=framadate
|
|
|
|
- MYSQL_DB=framadate
|
2022-01-09 11:56:04 +00:00
|
|
|
- MYSQL_HOST=framadate-db
|
|
|
|
- MYSQL_PORT=3306
|
2021-05-26 19:54:40 +00:00
|
|
|
- ADMIN_USER=admin
|
|
|
|
- APACHE_RUN_USER=www-data
|
|
|
|
- FRAMADATE_DEVMODE=1
|
2022-01-09 11:56:04 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2021-05-26 19:54:40 +00:00
|
|
|
restart: always
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
framadate-db:
|