This repository has been archived by the owner on Jul 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
98 lines (93 loc) · 2.03 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
version: '3.9'
services:
web:
build:
context: './images/nginx'
image: 'fotoj_nginx'
hostname: 'fotoj_web'
container_name: 'fotoj_web'
restart: always
volumes:
- './images/pixelfed/src:/var/www'
- './var/pixelfed/storage/app/public:/var/www/public/storage'
networks:
- planet-link
- fotoj-link
expose:
- '80'
depends_on:
- app
app:
# Comment to use dockerhub image
build:
context: './images/pixelfed/src'
dockerfile: 'contrib/docker/Dockerfile.fpm'
image: 'fotoj_pixelfed'
hostname: 'fotoj_app'
container_name: 'fotoj_app'
restart: always
env_file:
- .env
volumes:
- ./var/pixelfed/storage:/var/www/storage
- ./var/pixelfed/bootstrap/cache:/var/www/bootstrap/cache
networks:
- planet-link
- fotoj-link
expose:
- '9000'
depends_on:
- db
- redis
worker:
build:
context: './images/pixelfed/src'
dockerfile: 'contrib/docker/Dockerfile.fpm'
image: 'fotoj_pixelfed'
hostname: 'fotoj_worker'
container_name: 'fotoj_worker'
restart: always
env_file:
- .env
volumes:
- ./var/pixelfed/storage:/var/www/storage
- ./var/pixelfed/bootstrap/cache:/var/www/bootstrap/cache
networks:
- planet-link
- fotoj-link
command: gosu www-data php artisan horizon
depends_on:
- db
- redis
## DB and Cache
db:
image: mysql:8.0
hostname: 'fotoj_db'
container_name: 'fotoj_db'
restart: always
networks:
- fotoj-link
command: '--default-authentication-plugin=mysql_native_password'
env_file:
- .env
volumes:
- './var/mysql:/var/lib/mysql'
redis:
image: redis:5-alpine
hostname: 'fotoj_redis'
container_name: 'fotoj_redis'
restart: always
env_file:
- .env
volumes:
- './var/redis:/data'
networks:
- fotoj-link
networks:
default:
driver: 'null'
fotoj-link:
internal: true
planet-link:
external: true