services : ajout framadate
This commit is contained in:
parent
22a022f224
commit
593563def3
8
podman-framadate/10_install.sh
Executable file
8
podman-framadate/10_install.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
podman volume create framadate-docker_framadate-db
|
||||
podman volume create framadate-docker_framadate-data
|
||||
podman unshare chown -R 999:999 `podman volume inspect --format '{{ .Mountpoint }}' framadate-docker_framadate-db`
|
||||
git clone https://framagit.org/framasoft/framadate/framadate.git `podman volume inspect --format '{{ .Mountpoint }}' framadate-docker_framadate-data`
|
||||
podman unshare chown -R 33:33 `podman volume inspect --format '{{ .Mountpoint }}' framadate-docker_framadate-data`
|
||||
podman-compose build
|
||||
podman-compose up -d
|
5
podman-framadate/20_enable.sh
Executable file
5
podman-framadate/20_enable.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
podman generate systemd --files --name framadate-docker
|
||||
mkdir -p ~/.config/systemd/user/
|
||||
cp *.service ~/.config/systemd/user/
|
||||
systemctl --user enable pod-framadate-docker.service
|
46
podman-framadate/docker-compose.yml
Normal file
46
podman-framadate/docker-compose.yml
Normal file
|
@ -0,0 +1,46 @@
|
|||
version: '3'
|
||||
services:
|
||||
db:
|
||||
container_name: framadate-db
|
||||
image: mysql:5.7
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=${GARBAYE_FRAMADATE_MYSQL_ROOT_PASSWORD}
|
||||
- MYSQL_USER=framadate
|
||||
- MYSQL_PASSWORD=${GARBAYE_FRAMADATE_MYSQL_PASSWORD}
|
||||
- MYSQL_DATABASE=framadate
|
||||
restart: always
|
||||
ports:
|
||||
- "3307:3306"
|
||||
volumes:
|
||||
- framadate-db:/var/lib/mysql:Z
|
||||
|
||||
framadate-app:
|
||||
container_name: framadate-app
|
||||
build:
|
||||
dockerfile: ./docker/stretch/Dockerfile
|
||||
context: /home/podman-user/.local/share/containers/storage/volumes/framadate-docker_framadate-data/_data/
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
- 127.0.0.1:8083:80
|
||||
environment:
|
||||
- ENV=prod
|
||||
- APP_NAME=date.garbaye.fr
|
||||
- ADMIN_MAIL=contact-framadate@garbaye.fr
|
||||
- MYSQL_USER=framadate
|
||||
- MYSQL_PASSWORD=${GARBAYE_FRAMADATE_MYSQL_PASSWORD}
|
||||
- MYSQL_DB=framadate
|
||||
- MYSQL_HOST=db
|
||||
- MYSQL_PORT=3307
|
||||
- ADMIN_USER=admin
|
||||
- ADMIN_PASSWORD=${GARBAYE_FRAMADATE_ADMIN_PASSWORD}
|
||||
- APACHE_RUN_USER=www-data
|
||||
- FRAMADATE_DEVMODE=1
|
||||
- SMTP_SERVER=backdrifts.garbaye.fr:25
|
||||
restart: always
|
||||
volumes:
|
||||
- framadate-data:/var/www/framadate:Z
|
||||
|
||||
volumes:
|
||||
framadate-db:
|
||||
framadate-data:
|
Loading…
Reference in a new issue