-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (37 loc) · 980 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
version: '3.3'
services:
sq_pg:
container_name: sq_pg
image: postgres:9.5.23
expose:
- '5432'
ports:
- '54325:5432'
# Optionally also fwd mac host port 5432 to docker.
# This is useful if you want DaVinci to be able to connect to the local
# docker pg db.
- '5432:5432'
restart: always
volumes:
- /opt/ebs:/opt/ebs:cached
- ./:/workspace:cached
# /host/path:/container/path
environment:
- POSTGRES_DB=cyberpunk202x
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=DaVinci
- PGDATA=/opt/ebs/pgdata
command: postgres -c config_file=/workspace/pg/postgresql.conf
sq_tf:
container_name: sq_tf
build: ./tf
tty: true
volumes:
- ./:/workspace:cached
links:
- sq_pg
environment:
POSTGRES_DB: 'cyberpunk202x'
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'DaVinci'
PG: 'postgres://postgres:DaVinci@sq_pg/cyberpunk202x'