-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (65 loc) · 1.64 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
71
72
73
version: '3.7'
services:
editor:
image: ghost:4.48.8-alpine
volumes:
- ./content:/var/lib/ghost/content
- ./config.production.json:/var/lib/ghost/config.production.json
ports:
- 2368:2368
networks:
app-net:
ipv4_address: 172.31.238.10
export:
image: rija/gssg:20230124
volumes:
- "./site:/static"
command: /usr/local/bin/gssg --url http://localhost:9999
extra_hosts:
- "localhost:172.31.238.10"
networks:
- app-net
publish:
image: rija/gssg:20230124
volumes:
- "./stage/$PAGES_REPO_PATH/public:/static"
command: /usr/local/bin/gssg --url $REMOTE_URL
extra_hosts:
- "localhost:172.31.238.10"
networks:
- app-net
preview:
image: nginx:1.23.3-alpine
volumes:
- ./site:/usr/share/nginx/html:ro
ports:
- 9999:80
networks:
- app-net
version:
image: rija/gssg:20230124
command: sh -c "echo 'gssg:' && /usr/local/bin/gssg --version && echo 'wget:' && wget --version | head -1 && echo 'Node:' && node --version && echo 'NPM:' && npm --version"
test:
image: bats/bats:1.8.2
volumes:
- .:/code
backup:
image: rija/ghost-backup:4
environment:
AUTOMATED_BACKUPS: false
GHOST_SERVICE_NAME: editor
GHOST_SERVICE_USER_EMAIL: ${GHOST_SERVICE_USER_EMAIL}
GHOST_SERVICE_USER_PASSWORD: ${GHOST_SERVICE_USER_PASSWORD}
volumes_from:
- editor
volumes:
- ${BACKUP_PATH}/ghost_backups:/backups
networks:
- app-net
networks:
app-net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.31.238.0/24