Files
containers/bitnami/express/docker-compose-postgresql.yml
2017-01-17 23:49:57 +05:30

27 lines
566 B
YAML

version: '2'
services:
postgresql:
image: bitnami/postgresql:latest
environment:
- POSTGRESQL_DATABASE=myapp
myapp:
tty: true # Enables debugging capabilities when attached to this container.
image: bitnami/express:latest
command: npm start
environment:
- PORT=3000
- NODE_ENV=development
- DATABASE_URL=postgres://postgres@postgresql/myapp
- SKIP_DB_WAIT=0
- SKIP_DB_MIGRATION=0
- SKIP_NPM_INSTALL=0
depends_on:
- postgresql
ports:
- 3000:3000
volumes:
- .:/app