-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (47 loc) · 1.03 KB
/
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
44
45
46
47
48
49
version: "3"
services:
backend:
build: .
volumes:
- ./docker/etc/supervisord.conf:/etc/supervisord.conf
# - app-volume:/bin/
links:
- postgres
environment:
PG_HOST: postgres
PG_PORT: 5432
PG_PASSWORD: postgres
PG_USER: postgres
PG_DATABASE: db1
PORT: 3333
ports:
- "3333:3333"
postgres:
image: postgres:10.5
ports:
- "54321:5432"
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql
environment:
POSTGRES_DB: db1
# POSTGRES_PASSWORD: example
# ---
# docker exec -it haskell-selda-backend_postgres_1 /bin/bash
# psql -h postgres -U postgres -d db1
backend-builder:
image: haskell:8.6.5
volumes:
- ./application/:/app
# - app-volume:/root/.local/bin
command: sleep infinity
environment:
PG_HOST: postgres
PG_PORT: 5432
PG_PASSWORD: postgres
PG_USER: postgres
PG_DATABASE: db1
PORT: 3333
ports:
- "5432:54321"
# volumes:
# app-volume: