Changes

Jump to: navigation, search

Docker

556 bytes added, 21:34, 25 June 2018
Good to know
- legacy
</pre>
 
 
* volumes: specify the container volume:host dir mappaing like with the -v option in the run command. Long and short version:
<pre>
version: "3.2"
services:
web:
image: nginx:alpine
volumes:
- type: volume
source: mydata
target: /data
volume:
nocopy: true
- type: bind
source: ./static
target: /opt/app/static
 
db:
image: postgres:latest
volumes:
- "/var/run/postgres/postgres.sock:/var/run/postgres/postgres.sock"
- "dbdata:/var/lib/postgresql/data"
</pre>
 
==Good to know==

Navigation menu