-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yaml
90 lines (83 loc) · 1.69 KB
/
docker-compose.yaml
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
version: "3.8"
services:
app:
build:
context: .
target: app
image: ghcr.io/noagenda/website/app:${APP_TAG:-local}
platform: linux/x86_64
restart: unless-stopped
tty: true
#entrypoint: docker-php-entrypoint
#command: php-fpm
depends_on:
- database
- mail
volumes:
- ./:/srv/app
- public_media:/srv/app/public/media
networks:
- assets
- database
- php
- web
assets:
build:
context: .
target: assets
image: ghcr.io/noagenda/website/assets:${APP_TAG:-local}
platform: linux/x86_64
restart: unless-stopped
tty: true
volumes:
- ./:/srv/app
networks:
- assets
database:
image: mysql:8.0
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: InTheMorning
MYSQL_DATABASE: noagenda
MYSQL_USER: dudenamedben
MYSQL_PASSWORD: dudettenamedbernadette
ports:
- "8034:3306"
volumes:
- ./docker/database/conf.d:/etc/mysql/conf.d
- database_data:/var/lib/mysql
networks:
- database
mail:
image: mailhog/mailhog
restart: unless-stopped
ports:
- "8035:8025"
networks:
- php
web:
build:
context: .
target: web
image: ghcr.io/noagenda/website/web:${APP_TAG:-local}
platform: linux/x86_64
restart: unless-stopped
depends_on:
- app
- assets
ports:
- "8033:80"
volumes:
- ./:/srv/app
- ./docker/nginx/app.conf.template:/etc/nginx/templates/app.conf.template
- public_media:/srv/app/public/media
networks:
- web
volumes:
database_data:
public_media:
networks:
assets:
database:
php:
web: