we're back on windows bigtime
This commit is contained in:
1 parent
29610b49b2
commit
445821aa10
13 files changed
+58
-76
No files matched your search
+35
-20
@@ -1,42 +1,57 @@
|
||||
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}'
|
||||
# ports:
|
||||
# - '45432:5432'
|
||||
# volumes:
|
||||
# - "./db:/var/lib/postgresql/data"
|
||||
|
||||
api:
|
||||
image: node:20
|
||||
image: crates/api
|
||||
build:
|
||||
context: ./api
|
||||
dockerfile: ./api.Dockerfile
|
||||
working_dir: /opt/mcrates/api
|
||||
depends_on:
|
||||
- 'pg'
|
||||
entrypoint: npm start
|
||||
working_dir: /opt/crates/api
|
||||
# depends_on:
|
||||
# - 'pg'
|
||||
command: npm start
|
||||
environment:
|
||||
DATABASE_URL: 'postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@pg:5432/${POSTGRES_DB}?schema=public'
|
||||
DATABASE_URL: 'postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/${POSTGRES_DB}?schema=public'
|
||||
DISCORD_TOKEN: '${DISCORD_TOKEN}'
|
||||
DISCOGS_TOKEN: '${DISCOGS_TOKEN}'
|
||||
CHOKIDAR_USEPOLLING: 1
|
||||
volumes:
|
||||
- "./api:/opt/mcrates/api"
|
||||
- "./api:/opt/crates/api"
|
||||
- "/opt/crates/api/node_modules"
|
||||
extra_hosts:
|
||||
- "pg:host-gateway"
|
||||
|
||||
migrate:
|
||||
restart: on-failure:3
|
||||
extends: api
|
||||
command: npm run migrate status
|
||||
|
||||
client:
|
||||
image: node:16
|
||||
working_dir: /opt/mcrates/client
|
||||
working_dir: /opt/crates/client
|
||||
build:
|
||||
context: ./client
|
||||
dockerfile: ./client.dev.Dockerfile
|
||||
entrypoint: npm start
|
||||
ports:
|
||||
- '8080:8080' # fwd the hmr websocket
|
||||
environment:
|
||||
CHOKIDAR_USEPOLLING: 1
|
||||
volumes:
|
||||
- "./client:/opt/mcrates/client"
|
||||
- "./api:/opt/mcrates/api"
|
||||
- "./client:/opt/crates/client"
|
||||
- "./api:/opt/crates/api"
|
||||
- "/opt/crates/client/node_modules"
|
||||
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
|
||||
Reference in new issue
Block a user