Files
evidencija-rezija/docker-compose-deploy.yml

35 lines
1.2 KiB
YAML

# this compose file runs Postgres db and exposes it's port to the host machine
version: "3.7"
services:
web-app:
image: utility-bills-tracker:1.0.2
ports:
- ${PORT:-3001}:80
volumes:
- ./etc/hosts:/etc/hosts
environment:
MONGODB_URI: mongodb://root:example@mongo:27017/
GOOGLE_ID: 355397364527-adjrokm6hromcaaar0qfhk050mfr35ou.apps.googleusercontent.com
GOOGLE_SECRET: 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
AUTH_SECRET: Gh0jQ35oq6DR8HkLR3heA8EaEDtxYN/xkP6blvukZ0w=
HOSTNAME: ${HOSTNAME:-rezije.app} # IP address at which the server will be listening (0.0.0.0 = listen on all addresses)
NEXTAUTH_URL: ${NEXTAUTH_URL:-https://rezije.app} # URL next-auth will use while redirecting user during authentication (if not set - will use HOSTNAME)
PORT: 80
mongo:
image: mongo:4.4.27
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- ./mongo-volume:/data/db
mongo-express:
image: mongo-express
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/