date.chapril.org-framadate/docker-compose.yml
Thomas Citharel 8f115461e1 Introduce dev Docker Compose
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Run migrations on entrypoint

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Finalize Docker configuration

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

turn on pretty urls

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Make framadate await database container

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Add missing rewrite rule to apache config

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Finalize

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-07-12 15:31:57 +02:00

41 lines
1.1 KiB
YAML

version: '3'
services:
db:
container_name: framadate-db
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_USER=framadate
- MYSQL_PASSWORD=framadatedbpassword
- MYSQL_DATABASE=framadate
restart: always
ports:
- "3307:3306"
framadate:
container_name: framadate
build:
dockerfile: ./docker/stretch/Dockerfile
context: .
depends_on:
- db
ports:
- 80:80
environment:
- ENV=dev
- DOMAIN=localhost
- APP_NAME=Framadate
- ADMIN_MAIL=mon@email.fr
- MYSQL_USER=framadate
- MYSQL_PASSWORD=framadatedbpassword
- MYSQL_DB=framadate
- MYSQL_HOST=db
- MYSQL_PORT=3307
- ADMIN_USER=admin
- ADMIN_PASSWORD=adminpassword
- DISABLE_SMTP=true
- APACHE_RUN_USER=#1000
restart: always
volumes:
- '.:/var/www/framadate'