Sliders for accepting
This commit is contained in:
1 parent
445821aa10
commit
5e86a52d43
5 files changed
+111
-17
No files matched your search
+14
-14
@@ -1,16 +1,18 @@
|
||||
version: "3.3"
|
||||
|
||||
services:
|
||||
# pg:
|
||||
# image: postgres:latest
|
||||
# environment:
|
||||
# POSTGRES_USER: '${POSTGRES_USER}'
|
||||
# POSTGRES_DB: '${POSTGRES_DB}'
|
||||
# POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
|
||||
# ports:
|
||||
# - '45432:5432'
|
||||
# volumes:
|
||||
# - "./db:/var/lib/postgresql/data"
|
||||
pg:
|
||||
image: postgres:latest
|
||||
environment:
|
||||
POSTGRES_USER: '${POSTGRES_USER}'
|
||||
POSTGRES_DB: '${POSTGRES_DB}'
|
||||
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
|
||||
volumes:
|
||||
# so ez
|
||||
# insane
|
||||
- "./pg:/docker-entrypoint-initdb.d"
|
||||
ports:
|
||||
- '45432:5432'
|
||||
|
||||
api:
|
||||
image: crates/api
|
||||
@@ -18,8 +20,8 @@ services:
|
||||
context: ./api
|
||||
dockerfile: ./api.Dockerfile
|
||||
working_dir: /opt/crates/api
|
||||
# depends_on:
|
||||
# - 'pg'
|
||||
depends_on:
|
||||
- 'pg'
|
||||
command: npm start
|
||||
environment:
|
||||
DATABASE_URL: 'postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/${POSTGRES_DB}?schema=public'
|
||||
@@ -29,8 +31,6 @@ services:
|
||||
volumes:
|
||||
- "./api:/opt/crates/api"
|
||||
- "/opt/crates/api/node_modules"
|
||||
extra_hosts:
|
||||
- "pg:host-gateway"
|
||||
|
||||
migrate:
|
||||
restart: on-failure:3
|
||||
|
||||
Reference in new issue
Block a user