-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-prod.yml
56 lines (51 loc) · 1.02 KB
/
docker-prod.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
version: "3.3"
services:
redis:
image: redis
postgres-db:
image: postgres
env_file: envs/db.env
volumes:
- pgdata:/var/lib/postgresql/pgdata/
ports:
- "5432:5432"
web:
build: .
image: edonssfall/imdb
links:
- postgres-db:db
- redis:redis
volumes:
- .:/src
- ./static:/static
env_file:
- envs/db.env
- envs/prod.env
nginx:
image: nginx
volumes:
- ./config/nginx-prod.conf:/etc/nginx/conf.d/default.conf:ro
- ./static:/static:ro
- ./client/dist:/dist:ro
- ./config/ssl:/etc/ssl:ro
depends_on:
- web
networks:
- default
- proxy
ports:
- "80:80"
- "443:443"
environment:
- VIRTUAL_HOST=ithillel-leonid.ogir-ok.com
- LETSENCRYPT_HOST=ithillel-leonid.ogir-ok.com
- VIRTUAL_PROTO=https
- VIRTUAL_PORT=80
volumes:
pgdata: {}
static: {}
networks:
default:
proxy:
external: true