Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # docker-compose up -d
- ## app
- sharif-judge:
- #build: .
- image: liuyang1204/docker-sharif-judge
- environment:
- DB_DRIVER: postgre
- DB_HOST: postgres
- DB_USER: postgres
- DB_PASS: postgres
- DB_NAME: postgres
- ports:
- - "8080:80"
- links:
- - postgres:postgres
- container_name: sharif-judge
- ## DB
- postgres:
- image: postgres
- environment:
- POSTGRES_USER: postgres
- POSTGRES_PASSWORD: postgres
- POSTGRES_DB: postgres
- ports:
- - "5432:5432"
- container_name: postgres-db
- volumes_from:
- - postgres-data
- ## data
- postgres-data:
- image: busybox
- volumes:
- - /var/lib/postgresql/data
- container_name: postgres-datastore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement