corrected compose file
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
services:
|
||||
front:
|
||||
build: ./frontend
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- cert:/etc/letsencrypt
|
||||
depends_on:
|
||||
- api
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
links:
|
||||
- api
|
||||
api:
|
||||
build: ./backend
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
expose:
|
||||
- 8080
|
||||
depends_on:
|
||||
- mongodb
|
||||
volumes:
|
||||
- ./config/:/app/config/
|
||||
links:
|
||||
- mongodb
|
||||
mongodb:
|
||||
image: mongo:latest
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 27017
|
||||
ports:
|
||||
- "127.0.0.1:27017:27017"
|
||||
volumes:
|
||||
- mongodb:/data/db
|
||||
volumes:
|
||||
mongodb:
|
||||
cert:
|
||||
Reference in New Issue
Block a user