-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
106 lines (100 loc) · 2.28 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: '3.7'
services:
frontend:
build:
context: './client'
dockerfile: Dockerfile.prod
ports:
- '3000:3333'
env_file:
- ./client/.env.production
# deploy:
# replicas: 1
# restart_policy:
# condition: on-failure
networks:
- front
environment:
- DEFAULT_HOST=aggregator.localhost
- VIRTUAL_PORT=80
# VIRTUAL_HOST: aggregator.localhost
# - ES_CONNECTION_URI=${ES_CONNECTION_URI}
# extra_hosts:
# - 'one.mydomain.net:127.0.0.1'
# - 'two.mydomain.net:127.0.0.1'
backend:
build:
context: './server'
dockerfile: Dockerfile.prod
ports:
- '8080:8080'
env_file:
- ./server/.env
networks:
- back
# environment:
# - BOT_TOKEN=${BOT_TOKEN}
# - DB_HOST_PREFIX=${DB_HOST_PREFIX}
# - DB_USER=${DB_USER}
# - DB_PASSWORD=${DB_PASSWORD}
# - DB_HOST=${DB_HOST}
# - DB_NAME=${DB_NAME}
# - DB_HOST_OPTS=${DB_HOST_OPTS}
# depends_on:
# - db
# deploy:
# mode: replicated
# replicas: 2
# restart_policy:
# condition: on-failure
# placement:
# constraints:
# - node.role == manager
# resources:
# limits:
# cpus: '0.80'
# memory: 512M
# reservations:
# cpus: '0.50'
# memory: 256M
# search:
# build: './search'
# image: elasticsearch
# ports:
# - "9200:9200"
# ports:
# - '9243:9000'
# depends_on:
# - db
# environment:
# - ELASTICSEARCH_URI=
# db:
# image: mongo
# ports:
# - '27017:27017'
# # volumes:
# global routing server / reverse proxy
nginx-proxy:
image: jwilder/nginx-proxy:alpine
ports:
- '80:80'
# - '443:443'
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./default.dev.conf:/etc/nginx/conf.d/frontend.conf:ro
# - /etc/nginx/vhost.d
# - /opt/certs:/etc/nginx/certs:ro
# - ./web/public:/srv/www/static OR /usr/share/nginx/html
depends_on:
- backend
- frontend
# - search
networks:
- front
- back
networks:
back:
driver: bridge
# internal: true
front:
driver: bridge