forked from decentraland/auction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.production.yml
89 lines (82 loc) · 2.62 KB
/
docker-compose.production.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
version: '3'
services:
api:
build: .
volumes:
- .:/usr/src/app/
- /usr/src/app/node_modules
environment:
CONNECTION_STRING: postgres://magiklander@postgres:5432/auction
LETSENCRYPT_HOST: api.auction.decentraland.today
PORT: 80
networks:
- db
- ${NGINX_NETWORK}
web:
build: ./webapp
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
environment:
REACT_APP_API_URL: https://api.auction.decentraland.today
REACT_APP_TERRAFORM_CONTRACT_ADDRESS: 0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c
REACT_APP_MANA_CONTRACT_ADDRESS: 0x0F5D2fB29fb7d3CFeE444a200298f468908cC942
LETSENCRYPT_HOST: auction.decentraland.today
PORT: 80
networks:
- ${NGINX_NETWORK}
postgres:
image: postgres:latest
ports:
- 5432:5432
environment:
POSTGRES_USER: magiklander
POSTGRES_DB: auction
volumes:
- ./docker/10-init.production.sql:/docker-entrypoint-initdb.d/10-init.sql
networks:
- db
nginx:
image: nginx
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
container_name: ${NGINX_WEB}
restart: unless-stopped
ports:
- "${IP}:80:80"
- "${IP}:443:443"
volumes:
- ${NGINX_FILES_PATH}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH}/certs:/etc/nginx/certs:ro
nginx-gen:
image: jwilder/docker-gen
command: -notify-sighup ${NGINX_WEB} -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
container_name: ${DOCKER_GEN}
restart: unless-stopped
volumes:
- ${NGINX_FILES_PATH}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH}/certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
nginx-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: ${LETS_ENCRYPT}
restart: unless-stopped
volumes:
- ${NGINX_FILES_PATH}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH}/certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
NGINX_DOCKER_GEN_CONTAINER: ${DOCKER_GEN}
NGINX_PROXY_CONTAINER: ${NGINX_WEB}
networks:
default:
external:
name: ${NGINX_NETWORK}
db:
internal: true