Create README.md
This commit is contained in:
parent
09be16aa0a
commit
0bb46466a9
|
@ -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:
|
||||
|
||||
```
|
Loading…
Reference in New Issue