-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathdocker-compose-production.yml
More file actions
43 lines (39 loc) · 917 Bytes
/
docker-compose-production.yml
File metadata and controls
43 lines (39 loc) · 917 Bytes
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
version: "2"
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./htpasswd:/etc/nginx/htpasswd
openencoder-web:
image: alfg/openencoder:latest
environment:
- GIN_MODE=release
- DATABASE_HOST=db
- REDIS_HOST=redis
- VIRTUAL_HOST=dev.openencode.com
- CLOUDINIT_REDIS_HOST=priv.net.ip.addr
- CLOUDINIT_DATABASE_HOST=priv.net.ip.addr
- CLOUDINIT_WORKER_IMAGE=alfg/openencoder:latest
links:
- redis
- db
ports:
- "8080:8080"
entrypoint: ["/app", "server"]
redis:
image: "redis:alpine"
ports:
- priv.net.ip.addr:6379:6379
volumes:
- /data
db:
image: postgres
ports:
- priv.net.ip.addr:5432:5432
environment:
POSTGRES_PASSWORD: 'postgres'
volumes:
- /var/lib/postgresql/data