2022-02-08 13:07:18 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
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
|
|
|
|
image: php:8-alpine
|
|
|
|
volumes:
|
|
|
|
- ./web/src:/src
|
|
|
|
environment:
|
|
|
|
- DOMAIN=${DOMAIN}
|
|
|
|
working_dir: /src
|
|
|
|
networks:
|
|
|
|
- fedilove
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:latest
|
|
|
|
volumes:
|
|
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
|
|
ports:
|
|
|
|
- 127.0.0.1:8080:80
|
|
|
|
networks:
|
|
|
|
- fedilove
|
|
|
|
|
|
|
|
networks:
|
|
|
|
fedilove:
|
|
|
|
external: true
|