runner
Ansible role that deployes services on my runner machine
1.1 KB•J2
ghost-compose.yml.j2
1.1 KB • 51 lines • plaintext
1
2services:
3 ghost:
4 container_name: ghost
5 image: {{ container_images.ghost }}
6 restart: unless-stopped
7
8 env_file:
9 - ghost.env
10
11 volumes:
12 # Ghost content directory
13 - {{ ghost_content_dir }}:/var/lib/ghost/content
14
15 # Configuration file
16 - {{ ghost_config_dir }}/config.production.json:/var/lib/ghost/config.production.json:ro
17
18 ports:
19 - "{{ ghost_port }}:2368"
20
21 depends_on:
22 - ghost-mysql
23
24 networks:
25 - {{ runner_docker_network }}
26
27 ghost-mysql:
28 container_name: ghost-mysql
29 image: {{ container_images.mysql }}
30 restart: unless-stopped
31
32 env_file:
33 - ghost.env
34
35 command: >
36 --default-authentication-plugin=mysql_native_password
37 --character-set-server=utf8mb4
38 --collation-server=utf8mb4_unicode_ci
39 --innodb-buffer-pool-size=256M
40 --max-connections=100
41
42 volumes:
43 - {{ ghost_config_dir }}/mysql:/var/lib/mysql
44
45 networks:
46 - {{ runner_docker_network }}
47
48networks:
49 {{ runner_docker_network }}:
50 external: true
51