🐳 Set up envs for the TDrive (#19)

- remove php upstream from nginx config
- fix docker-compose configuration
This commit is contained in:
Anton Shepilov
2023-04-13 15:27:10 +02:00
committed by GitHub
parent e0615fa867
commit 01630194fc
7 changed files with 75 additions and 57 deletions
+31 -6
View File
@@ -6,21 +6,46 @@ services:
image: mongo
volumes:
- ./docker-data/mongo:/data/db
networks:
- tdrive_network
node:
image: tdrive/tdrive-node:latest
ports:
- 3000:3000
- 8000:3000
image: docker-registry.linagora.com/tdrive/tdrive-node
hostname: tdrive_node
environment:
- DEV=production
- SEARCH_DRIVER=mongodb
- DB_DRIVER=mongodb
- PUBSUB_TYPE=local
volumes:
- ./configuration/backend-node/production.json:/usr/src/app/config/production.json
- ./docker-data/documents/:/storage/
depends_on:
- mongo
links:
- mongo
networks:
- tdrive_network
fronend:
image: docker-registry.linagora.com/tdrive/tdrive-frontend
environment:
- DEV=production
- SSL_CERTS=selfsigned
- NODE_HOST=http://tdrive_node:4000
ports:
- 80:80
- 443:443
depends_on:
- node
volumes:
- ./docker-data/logs/nginx/:/var/log/nginx
- ./docker-data/letsencrypt/:/etc/letsencrypt/
- ./docker-data/drive-preview/:/tdrive-core/web/medias/
- ./docker-data/uploads/:/tdrive-core/web/upload/
- ./docker-data/ssl:/etc/nginx/ssl
networks:
- tdrive_network
networks:
tdrive_network:
driver: bridge