forked from offen/offen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (81 loc) · 1.9 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
# Copyright 2020-2021 - Offen Authors <[email protected]>
# SPDX-License-Identifier: Apache-2.0
version: '3'
services:
proxy:
image: nginx:1.17-alpine
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 8080:80
depends_on:
- server
- auditorium
- vault
- script
server:
build:
context: '.'
dockerfile: Dockerfile.golang
working_dir: /offen/server
volumes:
- serverdata:/var/opt/offen
- .:/offen
- serverdeps:/go/pkg
- servercache:/data
- ./locales:/offen/server/public/static/locales
environment:
OFFEN_APP_LOCALE: ${LOCALE:-en}
OFFEN_APP_DEVELOPMENT: '1'
OFFEN_SERVER_REVERSEPROXY: '1'
OFFEN_SERVER_PORT: 8080
OFFEN_SECRET: imLcp0dS4OaR6Lvl+z9tbg==
OFFEN_APP_ROOTACCOUNT: 3c8e3495-17c5-4be3-836c-e56fc562ace0
command: refresh run
vault: &budo_app
build:
context: '.'
dockerfile: Dockerfile.node
command: npm start
restart: on-failure
working_dir: /offen/vault
environment:
LOCALE: ${LOCALE:-en}
PORT: 9977
volumes:
- .:/offen
- ./locales:/offen/vault/locales
- vaultdeps:/offen/vault/node_modules
script:
<<: *budo_app
working_dir: /offen/script
environment:
LOCALE: ${LOCALE:-en}
PORT: 9966
volumes:
- .:/offen
- ./locales:/offen/script/locales
- scriptdeps:/offen/script/node_modules
auditorium:
<<: *budo_app
working_dir: /offen/auditorium
environment:
LOCALE: ${LOCALE:-en}
PORT: 9955
volumes:
- .:/offen
- ./locales:/offen/auditorium/locales
- auditoriumdeps:/offen/auditorium/node_modules
test_site:
image: nginx:1.17-alpine
ports:
- 8081:80
volumes:
- ./test-site:/usr/share/nginx/html
volumes:
serverdata:
serverdeps:
servercache:
scriptdeps:
auditoriumdeps:
vaultdeps: