-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
71 lines (67 loc) · 2.06 KB
/
docker-compose.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# vim: ts=2:sts=2:sw=2:expandtab
version: '3.7'
services:
serubin-net:
image: ${IMAGE_TAG} # Filled by docker ci
build: .
deploy:
replicas: 1
restart_policy:
condition: on-failure
restart: always
networks:
- default
- traefik-public
labels:
- "traefik.enable=true"
- "traefik.domain=serubin.net"
- "traefik.frontend.rule=Host: serubin.net, www.serubin.net, serubin.com, www.serubin.com, serub.in, www.serub.in, solomonrub.in, www.solomonrub.in, solomonrubin.com, www.solomonrubin.com"
- "traefik.tags=traefik-public"
- "traefik.docker.network=traefik-public"
- "traefik.port=80"
- "traefik.webservice.frontend.entryPoints=http,https"
- "traefik.default.protocol=http"
# ghost:
# image: ghost:alpine
# restart: always
# deploy:
# replicas: 1
# restart_policy:
# condition: on-failure
# environment:
# database__client: mysql
# database__connection__host: db
# database__connection__user: root
# database__connection__password: $DB_PASSWD
# database__connection__database: ghost
# url: https://serubin.net/blog-test
# volumes:
# - /opt/data/serubin-net/blog/content:/var/lib/ghost/content
# networks:
# - default
# - traefik-public
# labels:
# - "traefik.enable=true"
# - "traefik.domain=serubin.net"
# - "traefik.frontend.rule=Host: serubin.net, www.serubin.net, www.serubin.com, serub.in, www.serub.in, solomonrub.in, www.solomonrub.in, solomonrubin.com, www.solomonrubin.com; PathPrefix: /blog-test"
# - "traefik.tags=traefik-public"
# - "traefik.docker.network=traefik-public"
# - "traefik.port=2368"
# - "traefik.default.protocol=http"
#
# db:
# image: mysql:5.7
# restart: always
# deploy:
# replicas: 1
# restart_policy:
# condition: on-failure
# environment:
# MYSQL_DATABASE: ghost
# MYSQL_ROOT_PASSWORD: $DB_PASSWD
# volumes:
# - /opt/data/serubin-net/blog/db:/var/lib/mysql
#
networks:
traefik-public:
external: true