-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml.template
47 lines (44 loc) · 1.09 KB
/
docker-compose.yml.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3.7'
services:
ServiceName:
depends_on:
- dbcraft
restart: unless-stopped
image: ImageName
container_name: ContainerName
pull_policy: always
networks:
- caddy
- db_network_craft
environment:
ENVIRONMENT: dev
DB_SERVER: dbcraft
DB_USER: MysqlUser
DB_PASSWORD: MysqlPassword
DB_DATABASE: MysqlDatabase
DB_PORT: MysqlTcpPort
XDEBUG_ON: "yes"
XDEBUG_HOST: "host.docker.internal"
XDEBUG_IDEKEY: "PHPSTORM"
labels:
caddy_0: UrlName
caddy_0.reverse_proxy: "{{upstreams PortNum}}"
caddy_0.tls.ca: https://acme-staging-v02.api.letsencrypt.org/directory
dbcraft:
image: 'mysql:5.7'
pull_policy: always
restart: unless-stopped
container_name: MysqlContainerName
networks:
- db_network_craft
environment:
MYSQL_ROOT_PASSWORD: MysqlRootPassword
MYSQL_DATABASE: MysqlDatabase
MYSQL_USER: MysqlUser
MYSQL_PASSWORD: MysqlPassword
MYSQL_TCP_PORT: MysqlTcpPort
networks:
caddy:
external: true
db_network_craft:
external: false