-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
52 lines (46 loc) · 1.37 KB
/
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
services:
# Main Server
nginx:
container_name: nginx
image: docker.io/nginx:1.25.4-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
depends_on:
- wordpress-f.kth.se
- example-app
volumes:
- ./services/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./services/nginx/certificates:/etc/nginx/certificates
- ./services/f.kth.se/wordpress:/f.kth.se/wordpress
- ./services/example-app/static:/f.kth.se/example-app
- ./services/misc/f.png:/f.kth.se/f.png
# f.kth.se Wordpress and Database
mariadb-f.kth.se:
container_name: mariadb-f.kth.se
image: docker.io/mariadb
restart: unless-stopped
volumes:
- ./services/f.kth.se/mariadb:/var/lib/mysql
env_file: ./services/f.kth.se/.env
environment:
MARIADB_DATABASE: fkthse
wordpress-f.kth.se:
container_name: wordpress-f.kth.se
image: docker.io/wordpress:6.4.3-php8.1-fpm-alpine
restart: unless-stopped
volumes:
- ./services/f.kth.se/wordpress:/var/www/html/
depends_on:
- mariadb-f.kth.se
env_file: ./services/f.kth.se/.env
environment:
WORDPRESS_DB_HOST: mariadb-f.kth.se
WORDPRESS_DB_NAME: fkthse
WORDPRESS_TABLE_PREFIX: wp_
## Example app
example-app:
container_name: example-app
image: ghcr.io/fysiksektionen/example-app:${EXAMPLE_APP_VERSION}
init: true