1
0
Fork 0

Create README.md

This commit is contained in:
Jonathan Chan 2019-06-14 23:07:53 -07:00 committed by GitHub
parent 09be16aa0a
commit 0bb46466a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 39 additions and 0 deletions

39
README.md Normal file
View File

@ -0,0 +1,39 @@
# Template
```yaml
version: "3"
services:
example:
image: author/example:tag
container_name: example
restart: always
environment:
- ENV_VAR=value
ports:
- 8000:80
volumes:
- /unnamed/volume/will/be/created
- myvolume:/var/www/html
- /srv/data/host/location:/srv/data
networks:
- mynetwork
depends_on:
- db
db:
image: postgres
container_name: example-db
restart: always
expose:
- 5432
volumes:
- example-db:/var/lib/postgresql/9.3./main
networks:
mynetwork:
volumes:
myvolume:
example-db:
```