78 lines
1.3 KiB
YAML
78 lines
1.3 KiB
YAML
name: my-awesome-compose
|
|
|
|
services:
|
|
nginx:
|
|
# TODO(any)(latest) no latest??
|
|
build: ./requirements/nginx/
|
|
ports:
|
|
- 4433:443
|
|
depends_on:
|
|
wordpress:
|
|
condition: service_healthy
|
|
volumes:
|
|
- www:/www:ro
|
|
# domainname: mcolonna.42.fr # TODO(vm) useful? # TODO(any)(nocopy)
|
|
|
|
wordpress:
|
|
build: ./requirements/wordpress
|
|
volumes:
|
|
- www:/www:rw
|
|
depends_on:
|
|
mariadb:
|
|
condition: service_healthy
|
|
|
|
mariadb:
|
|
build: ./requirements/mariadb
|
|
volumes:
|
|
- db:/db:rw
|
|
|
|
volumes:
|
|
www:
|
|
db:
|
|
|
|
### services ###
|
|
# image:
|
|
# build:
|
|
# ports:
|
|
# depends_on:
|
|
# - ...
|
|
# ...
|
|
# |
|
|
# ...:
|
|
# condition: service_healthy
|
|
# domainname: ...
|
|
# env_file: ...
|
|
# environment: ...
|
|
# expose:
|
|
# - ...
|
|
# ...
|
|
# external-links:
|
|
# - ...
|
|
# ...
|
|
# healthcheck: # Dockerfile
|
|
# hostname: ...
|
|
# labels:
|
|
# - ...
|
|
# ...
|
|
# label_file: ...
|
|
# restart: on-failure:3 / always
|
|
# secrets:
|
|
# - ...
|
|
# ...
|
|
# volumes: {out}:{in}:{rw|ro}
|
|
# networks: ???
|
|
|
|
### networks (list of networks) ###
|
|
# (services are connected to the network "default" by default)
|
|
# (see https://docs.docker.com/compose/how-tos/networking/)
|
|
|
|
### volumes (list of volumes) ###
|
|
# (there's nothing useful???)
|
|
|
|
### configs ###
|
|
# ???
|
|
|
|
### secrets ###
|
|
# ??? see configs before
|
|
|
|
###
|