Skip to content

Instantly share code, notes, and snippets.

@brlafreniere
Created October 24, 2021 04:26
Show Gist options
  • Save brlafreniere/1fa98d566c1625234cb2bbbb5194ed3e to your computer and use it in GitHub Desktop.
Save brlafreniere/1fa98d566c1625234cb2bbbb5194ed3e to your computer and use it in GitHub Desktop.
version: "3.3"
services:
webserver:
build:
context: ./app_react
args:
- APP_HOST_URL=$APP_HOST_URL
- APP_BACKEND_PORT=$APP_BACKEND_PORT
ports:
- 80:80
- ${APP_BACKEND_PORT}:8080
nodeapp:
build: ./app_node
environment:
- APP_HOST_URL=$APP_HOST_URL
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
db:
image: postgres:14
environment:
- POSTGRES_DB=$POSTGRES_DB
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
volumes:
- pg_data:/var/lib/postgresql
- ./sql:/docker-entrypoint-initdb.d/
ports:
- 5432:5432
nginx:
image: nginx:1.21.3
volumes:
pg_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment