Skip to content

Instantly share code, notes, and snippets.

@MrModest
Created September 11, 2021 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrModest/8215ef065f006ddc5d3d8da941cc39a3 to your computer and use it in GitHub Desktop.
Save MrModest/8215ef065f006ddc5d3d8da941cc39a3 to your computer and use it in GitHub Desktop.
Example docker-compose config
version: "3.9"
services:
db:
image: postgres
volumes:
- ./data/db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
web:
container_name: web
build: ./web
env_file:
- ./web/env.list
ports:
- '443:443'
depends_on:
- db
client:
container_name: client
build: ./client
env_file:
- ./client/env.list
volumes:
- './:/app'
- '/app/node_modules'
ports:
- '3000:3000'
stdin_open: true
environment:
- CHOKIDAR_USEPOLLING=true
command: npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment