47 lines
770 B
YAML
47 lines
770 B
YAML
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}
|
|
- DB_HOST=${DB_HOST}
|
|
- DB_NAME=${DB_NAME}
|
|
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
|