forked from Feyko/FICSIT-Fred
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 1.11 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
version: '3'
services:
fred:
depends_on:
- postgres
build:
context: .
dockerfile: "./docker/Dockerfile"
environment:
FRED_IP: '::'
FRED_PORT: 80
FRED_TOKEN: '${FRED_TOKEN}'
DIALOGFLOW_AUTH: '${DIALOGFLOW_AUTH}'
FRED_SQL_DB: 'fred'
FRED_SQL_USER: 'fred'
FRED_SQL_PASSWORD: 'fred'
FRED_SQL_HOST: postgres
FRED_SQL_PORT: 5432
ports:
- "80:80"
postgres:
image: postgres:14.0-alpine
environment:
POSTGRES_PASSWORD: fred
POSTGRES_USER: fred
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- pgdata:/var/lib/postgresql/data/pgdata:z
- ./docker/exampledb.sql:/docker-entrypoint-initdb.d/exampledb.sql
pgadmin:
depends_on:
- postgres
image: dpage/pgadmin4:6
environment:
PGADMIN_DEFAULT_EMAIL: 'fred@fred.com'
PGADMIN_DEFAULT_PASSWORD: 'fred'
ports:
- "8080:80"
volumes:
pgdata: