-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.save.1
91 lines (73 loc) · 1.59 KB
/
docker-compose.yml.save.1
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
version: '3'
services:
nginx:
container_name: 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
depends_on:
- db
networks:
proxy-net:
db:
container_name: db
image: postgres:12.0-alpine
user: postgres
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=database
expose:
- 5432
networks:
proxy-net:
depends_on:
- nginx
networks:
proxy-net:
volumes:
postgres_data:
certs:
vhostd:
config:
html:
: