2023-01-09 15:25:45 +01:00
|
|
|
# {{ cookiecutter.app_name }} docker compose
|
|
|
|
version: '3.9'
|
|
|
|
services:
|
2023-04-27 22:05:41 +02:00
|
|
|
{{ cookiecutter.app_name}}:
|
|
|
|
image: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_image {% raw %}}}{% endraw %}"
|
|
|
|
container_name: {{ cookiecutter.app_name }}-service
|
|
|
|
restart: always
|
|
|
|
env_file:
|
|
|
|
- "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_config_path | expanduser {% raw %}}}{% endraw %}/env.{{ cookiecutter.app_name }}.conf"
|
|
|
|
ports:
|
|
|
|
- "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_http_port {% raw %}}}{% endraw %}"
|
|
|
|
# Add more ports if necessary
|
|
|
|
networks:
|
|
|
|
- {{ cookiecutter.app_name }}-net
|
|
|
|
# optional
|
|
|
|
volumes:
|
2023-04-30 13:34:22 +02:00
|
|
|
- "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_volume {% raw %}}}{% endraw %}"
|
2023-04-27 22:05:41 +02:00
|
|
|
depends_on:
|
|
|
|
- other
|
|
|
|
- services
|
|
|
|
|
2023-04-30 13:34:22 +02:00
|
|
|
volumes:
|
|
|
|
- "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_volume {% raw %}}}{% endraw %}"
|
2023-04-27 22:05:41 +02:00
|
|
|
|
|
|
|
networks:
|
2023-04-30 13:34:22 +02:00
|
|
|
{{ cookiecutter.app_name }}-net: {}
|