Created
September 11, 2021 19:23
-
-
Save MrModest/8215ef065f006ddc5d3d8da941cc39a3 to your computer and use it in GitHub Desktop.
Example docker-compose config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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