-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (76 loc) · 2.39 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
###############################################################################
# Tokyohackerspace Website docker configuration.
# This is the primary docker compose file for tokyohackerspace.
# Ports for development and production are provided in override files.
# Example usage.
#
# usage:
# Development: docker-compose -f docker-compose.yml -f ./overrides/development.yml up
# Production: docker-compose -f docker-compose.yml -f ./overrides/production.yml up
#
###############################################################################
version: '2'
services:
ths_apache_main:
container_name: ths_apache_main
build: $THS_GIT_BASE/ths-website-apache-php
image: ths-apache-php
volumes:
- $THS_GIT_BASE/ths-website-base/vol/www/main:/var/www
restart: always
ths_apache_akihabara:
container_name: ths_apache_akihabara
image: ths-apache-php
volumes:
- $THS_GIT_BASE/ths-website-base/vol/www/akihabara/html:/var/www/html
restart: always
ths_dokuwiki:
container_name: ths_dokuwiki
image: bitnami/dokuwiki:latest
volumes:
- $THS_GIT_BASE/ths-website-base/vol/dokuwiki/wiki:/bitnami
restart: always
ths_partkeepr:
container_name: ths_partkeepr
image: mhubig/partkeepr
environment:
PARTKEEPR_DATABASE_HOST: ths_database
PARTKEEPR_DATABASE_NAME: partkeepr
PARTKEEPR_DATABASE_PORT: 3306
PARTKEEPR_DATABASE_USER: partkeepr
PARTKEEPR_DATABASE_PASS: partkeepr
PARTKEEPR_OKTOPART_APIKEY: 0123456
depends_on:
- ths_database
restart: always
ths_rproxy:
container_name: ths_rproxy
build: $THS_GIT_BASE/ths-website-rproxy
image: ths-rproxy
ports:
- 80:80
- 443:443
depends_on:
- ths_apache_main
- ths_apache_akihabara
- ths_dokuwiki
- ths_partkeepr
restart: always
ths_database:
container_name: ths_database
image: mysql
ports:
- "3309:3306"
environment:
MYSQL_DATABASE: partkeepr
MYSQL_USER: partkeepr
MYSQL_PASSWORD: partkeepr
MYSQL_ROOT_PASSWORD: partkeepr
volumes:
- $THS_GIT_BASE/ths-website-base/vol/mysql-dump:/docker-entrypoint-initdb.d
- $THS_GIT_BASE/ths-website-base/vol/mysql:/var/lib/mysql
restart: always
# ths_backup_management:
# container_name: ths_backup_management
# build: ths-backup-management
# image: ths-backup-management