add docker files & nginx config
This commit is contained in:
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
services:
|
||||
api:
|
||||
build: .
|
||||
container_name: archive-local-api
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 5000
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./db:/app/db
|
||||
|
||||
web:
|
||||
build: ./web
|
||||
container_name: archive-local-web
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 3000
|
||||
env_file:
|
||||
- ./web/.env
|
||||
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
container_name: archive-local-nginx
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 80:80
|
||||
volumes:
|
||||
- ./nginx:/etc/nginx/conf.d
|
||||
Reference in New Issue
Block a user