mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-10 07:58:15 -05:00
70 lines
1.4 KiB
YAML
70 lines
1.4 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
nginx:
|
|
container_name: infisical-nginx
|
|
image: nginx
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
|
depends_on:
|
|
- frontend
|
|
- backend
|
|
networks:
|
|
- infisical
|
|
|
|
backend:
|
|
platform: linux/amd64
|
|
container_name: infisical-backend
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- mongo
|
|
image: infisical/backend
|
|
volumes:
|
|
- ./backend/src:/app/src
|
|
- ./backend/nodemon.json:/app/nodemon.json
|
|
- /app/node_modules
|
|
command: npm run start
|
|
env_file: .env
|
|
networks:
|
|
- infisical
|
|
|
|
frontend:
|
|
platform: linux/amd64
|
|
container_name: infisical-frontend
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- backend
|
|
image: infisical/frontend
|
|
volumes:
|
|
- ./frontend/pages:/app/pages
|
|
- ./frontend/public:/app/public
|
|
- ./frontend/styles:/app/styles
|
|
- ./frontend/components:/app/components
|
|
- ./frontend/next.config.js:/app/next.config.js
|
|
env_file: .env
|
|
networks:
|
|
- infisical
|
|
|
|
mongo:
|
|
container_name: infisical-mongo
|
|
image: mongo
|
|
restart: always
|
|
volumes:
|
|
- mongo-data:/data/db
|
|
networks:
|
|
- infisical
|
|
|
|
watchtower:
|
|
image: containrrr/watchtower
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
volumes:
|
|
mongo-data:
|
|
driver: local
|
|
|
|
networks:
|
|
infisical: |