compose and nginx
This commit is contained in:
1 parent
44c83d3b33
commit
2804477601
7 files changed
+123
-43
No files matched your search
@@ -0,0 +1,35 @@
|
||||
version: "3.3"
|
||||
|
||||
services:
|
||||
pg:
|
||||
image: postgres:latest
|
||||
environment:
|
||||
POSTGRES_USER: 'mcrates'
|
||||
POSTGRES_DB: 'mcrates'
|
||||
POSTGRES_PASSWORD: 'digdeep'
|
||||
volumes:
|
||||
- "./db:/var/lib/postgresql/data"
|
||||
|
||||
api:
|
||||
image: node:16
|
||||
working_dir: /opt/mcrates/api
|
||||
entrypoint: npm start
|
||||
environment:
|
||||
DATABASE_URL: 'postgresql://mcrates:digdeep@pg:5432/mcrates?schema=public'
|
||||
volumes:
|
||||
- "./api:/opt/mcrates/api"
|
||||
|
||||
client:
|
||||
image: node:16
|
||||
working_dir: /opt/mcrates/client
|
||||
entrypoint: npm start
|
||||
volumes:
|
||||
- "./client:/opt/mcrates/client"
|
||||
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
volumes:
|
||||
- './nginx/localhost.nginx.conf:/etc/nginx/conf.d/default.conf'
|
||||
- '/etc/letsencrypt'
|
||||
ports:
|
||||
- '80:80'
|
||||
Reference in new issue
Block a user