Skip to content

Instantly share code, notes, and snippets.

@rust20
Last active April 2, 2019 04:44
Show Gist options
  • Save rust20/bd9eeea33c10b1248f91b431346cd415 to your computer and use it in GitHub Desktop.
Save rust20/bd9eeea33c10b1248f91b431346cd415 to your computer and use it in GitHub Desktop.
version: '2'
services:
db:
image: postgres:alpine
environment:
POSTGRES_NAME: postgres
POSTGRES_PASSWORD: visiland
POSTGRES_USER: postgres
volumes:
- db-data:/var/lib/postgresql/data
ports:
- 5433:5432
app:
container_name: yuk-container
build: .
image: 'registry.docker.ppl.cs.ui.ac.id/ppla4/yuk-recycle-api'
environment:
db_name: postgres
db_pass: visiland
db_user: postgres
db_type: postgres
db_host: db
db_port: 5432
token_password: qwertyuiopasdfghjklzxcvbnm
ports:
- 8000:8000
depends_on:
- db
links:
- db:5432
volumes:
db-data:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment