2020-05-01 04:59:04 +08:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
shynet:
|
|
|
|
image: milesmcc/shynet:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
expose:
|
|
|
|
- 8080
|
2020-05-02 21:25:37 +08:00
|
|
|
env_file:
|
|
|
|
# Create a file called '.env' if it doesn't already exist.
|
|
|
|
# You can use `TEMPLATE.env` as a guide.
|
|
|
|
- .env
|
2020-05-01 04:59:04 +08:00
|
|
|
environment:
|
|
|
|
- DB_HOST=db
|
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
db:
|
|
|
|
image: postgres
|
|
|
|
restart: always
|
|
|
|
environment:
|
2020-05-02 21:25:37 +08:00
|
|
|
- "POSTGRES_USER=${DB_USER}"
|
|
|
|
- "POSTGRES_PASSWORD=${DB_PASSWORD}"
|
|
|
|
- "POSTGRES_DB=${DB_NAME}"
|
2020-05-01 04:59:04 +08:00
|
|
|
volumes:
|
|
|
|
- shynet_db:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
volumes:
|
|
|
|
shynet_db:
|
|
|
|
networks:
|
|
|
|
internal:
|