-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.save
126 lines (102 loc) · 2.11 KB
/
docker-compose.yml.save
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
version: '3'
services:
nginx:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./config/certs:/etc/nginx/certs:ro
- html:/usr/share/nginx/html
- vhostd:/etc/nginx/vhost.d
networks:
proxy-net:
labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
restart: always
environment:
- NGINX_PROXY_CONTAINER=nginx-proxy
volumes:
- ./config/certs:/etc/nginx/certs:rw
- vhostd:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
api:
container_name: api
user: root
restart: always
build:
context: .
dockerfile: ./Dockerfile
volumes:
- .:/app
expose:
- 80
environment:
- VIRTUAL_HOST=wardixlab.com
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=wardixlab.com
- LETSENCRYPT_EMAIL=resourceld@gmail.com
depends_on:
- db
networks:
proxy-net:
db:
container_name: db
image: postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=lucas
- POSTGRES_PASSWORD=admin
- POSTGRES_HOST=66.97.42.81
ports:
- 5432:5432
networks:
proxy-net:
networks:
proxy-net:
volumes:
postgres_data:
certs:
vhostd:
config:
html:
version: '3.7'
services:
api:
container_name: api
user: root
restart: always
build:
context: .
dockerfile: ./Dockerfile
volumes:
- .:/app
ports:
- 8000:8000
depends_on:
- db
networks:
proxy-net:
db:
container_name: db
image: postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=lucas
- POSTGRES_PASSWORD=zen777
- POSTGRES_DB=wallaback
- POSTGRES_HOST=66.97.42.81
expose:
- 5432
networks:
proxy-net:
networks:
proxy-net:
volumes:
postgres_data: