-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
52 lines (49 loc) · 1.02 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
52 lines (49 loc) · 1.02 KB
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
version: '2'
services:
app:
image: nalch/basicdeauth:0.7
environment:
- STAGE=p
volumes:
- nginx_html:/var/www/html
- basicdeauth_conf_path:/etc/local/basicdeauth/conf
- basicdeauth_var_path:/var/local/basicdeauth
links:
- postgres
depends_on:
- postgres
networks:
default: {}
nginx-net: {}
logging:
driver: json-file
options:
max-size: 1m
max-file: 3
postgres:
image: postgres:9
environment:
- POSTGRES_DB=basicdeauth
- POSTGRES_USER=basicdeauth
- POSTGRES_PASSWORD=basicdeauth
- PGDATA=/var/local/basicdeauth/pgdata
volumes:
- basicdeauth_var_path:/var/local/basicdeauth
logging:
driver: json-file
options:
max-size: 1m
max-file: 3
volumes:
basicdeauth_app_path:
external: true
basicdeauth_var_path:
external: true
nginx_html:
external: true
basicdeauth_conf_path:
external: true
networks:
nginx-net:
external:
name: nginx-net