fedilove/docker-compose.yaml

49 lines
816 B
YAML
Raw Normal View History

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}
- 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
build: web/
2022-02-08 13:07:18 +00:00
volumes:
- ./web/src:/src
environment:
- DOMAIN=${DOMAIN}
- DB_HOST=${DB_HOST}
- DB_NAME=${DB_NAME}
2022-02-08 13:07:18 +00:00
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