This repository has been archived by the owner on Dec 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
92 lines (87 loc) · 1.82 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
version: '3.5'
services:
db:
image: mongo
container_name: shadowban-db
hostname: shadowban-db
ports:
- "127.0.0.1:27017:27017"
env_file:
- ./env/mongod.env
networks:
- common
www:
build: www/.
container_name: shadowban-www
hostname: shadowban-www
ports:
- "127.0.0.1:80:80"
- "127.0.0.1:443:443"
volumes:
# main config
- ./www/nginx.conf:/etc/nginx/nginx.conf
# site configs
- ./www/sites-enabled:/etc/nginx/sites-enabled
# document roots
- ./sites:/var/sites
# SSL certificates
- ./www/ssl:/etc/nginx/ssl
# log files
- ./logs/nginx:/var/log/nginx
networks:
- common
testing:
build: ../testing/.
container_name: shadowban-testing
hostname: shadowban-testing
command: ./bin/docker-entry.sh
stdin_open: true
expose:
- "4040"
volumes:
- ../testing:/app
- ./logs/testing:/app/logs
env_file:
- ./env/testing.env
depends_on:
- db
- www
networks:
- common
timeline-termination:
build: ../timeline-termination/.
container_name: shadowban-timeline-termination
hostname: shadowban-timeline-termination
command: yarn dev
stdin_open: true
expose:
- "3300"
volumes:
- ../timeline-termination:/app
- ./logs/timeline-termination:/app/logs
env_file:
- ./env/timeline-termination.env
depends_on:
- db
- www
networks:
- common
pwa:
build: ../pwa/.
container_name: shadowban-pwa
hostname: shadowban-pwa
command: yarn start
stdin_open: true
expose:
- "3000"
volumes:
- ../pwa:/app
env_file:
- ./env/pwa.env
depends_on:
- www
networks:
- common
networks:
common:
name: shadowban-dev_common