-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 954 Bytes
/
docker-compose.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
version: '3'
services:
nginx:
image: victorhad/tbl:nginx
container_name: pgtbl-nginx
build:
context: .
dockerfile: ./dockers/nginx/Dockerfile
ports:
- "443:8000"
- "80:80"
volumes:
- ./.ignore/nginx:/var/log/nginx
depends_on:
- pgtbl
pgtbl:
image: victorhad/pgtbl:latest
container_name: pgtbl
build:
context: .
dockerfile: ./dockers/production/Dockerfile
environment:
- POSTGRES_NAME=pgtbl_db
- POSTGRES_USER=pgtbl
- POSTGRES_PASSWORD=pgtbl
- POSTGRES_HOST=db
- POSTGRES_PORT=5432
command: "./dockers/production/prod.sh"
volumes:
- .:/home/pgtbl/
depends_on:
- db
db:
image: postgres:latest
container_name: pgtbl-db
environment:
- POSTGRES_DB=pgtbl_db
- POSTGRES_USER=pgtbl
- POSTGRES_PASSWORD=pgtbl
volumes:
- ./.ignore/postgres/postgres:/var/lib/postgresql/data