-
Notifications
You must be signed in to change notification settings - Fork 0
Docker
Mads edited this page Jun 19, 2024
·
2 revisions
Docker env-files
Docker-run to Docker-compose
Official Docker docs
version: '3.9' # version of docker
services:
apache: # service name
image: httpd/alpine:3.18 # creator/image:version
restart: unless-stopped
container_name: website # name of container
ports: # define ports container can use
- '80:80' # host-port:container-port
volumes: # define volumes container can use
- ./src:/usr/local/apache2/htdocs # host-path:container-path