2022-02-08 13:07:18 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
2022-02-16 10:58:19 +00:00
|
|
|
command: --noscripting
|
2022-02-08 13:07:18 +00:00
|
|
|
image: mongo:latest
|
|
|
|
volumes:
|
|
|
|
- ./_dev/db:/data/db
|
|
|
|
networks:
|
|
|
|
- fedilove
|
|
|
|
|
|
|
|
api:
|
|
|
|
command: sleep infinity
|
|
|
|
build: api/
|
|
|
|
volumes:
|
|
|
|
- ./api/src:/src
|
|
|
|
environment:
|
|
|
|
- DOMAIN=${DOMAIN}
|
2022-02-08 21:22:42 +00:00
|
|
|
- DB_HOST=${DB_HOST}
|
|
|
|
- DB_NAME=${DB_NAME}
|
2022-02-08 13:07:18 +00:00
|
|
|
working_dir: /src
|
|
|
|
networks:
|
|
|
|
- fedilove
|
|
|
|
|
|
|
|
web:
|
|
|
|
command: php -S 0.0.0.0:8080
|
2022-02-10 00:32:00 +00:00
|
|
|
build: web/
|
2022-02-08 13:07:18 +00:00
|
|
|
volumes:
|
|
|
|
- ./web/src:/src
|
2022-02-11 00:46:55 +00:00
|
|
|
- ./web/data:${DATA_DIR}
|
2022-02-08 13:07:18 +00:00
|
|
|
environment:
|
|
|
|
- DOMAIN=${DOMAIN}
|
2022-02-10 00:32:00 +00:00
|
|
|
- DB_HOST=${DB_HOST}
|
|
|
|
- DB_NAME=${DB_NAME}
|
2022-02-11 00:46:55 +00:00
|
|
|
- DATA_DIR=${DATA_DIR}
|
2022-02-08 13:07:18 +00:00
|
|
|
working_dir: /src
|
|
|
|
networks:
|
|
|
|
- fedilove
|
|
|
|
|
|
|
|
nginx:
|
2022-02-11 00:24:25 +00:00
|
|
|
command: sh -c "envsubst \"`env | awk -F = '{printf \" $$%s\", $$1}'`\" < /tmp/nginx.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
|
2022-02-08 13:07:18 +00:00
|
|
|
image: nginx:latest
|
|
|
|
volumes:
|
2022-02-11 00:24:25 +00:00
|
|
|
- ./nginx.conf:/tmp/nginx.template:ro
|
2022-02-11 00:46:55 +00:00
|
|
|
- ./web/data:${DATA_DIR}:ro
|
2022-02-11 00:24:25 +00:00
|
|
|
environment:
|
2022-02-11 00:46:55 +00:00
|
|
|
- DATA_DIR=${DATA_DIR}
|
2022-02-08 13:07:18 +00:00
|
|
|
ports:
|
|
|
|
- 127.0.0.1:8080:80
|
|
|
|
networks:
|
|
|
|
- fedilove
|
|
|
|
|
|
|
|
networks:
|
|
|
|
fedilove:
|
|
|
|
external: true
|