-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
49 lines (46 loc) · 1.1 KB
/
docker-compose.yaml
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.8'
services:
mage:
image: mageai/mageai:latest
container_name: magic
env_file:
- .env
environment:
ENV: dev
POSTGRES_DB: ${POSTGRES_SCHEMA}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_HOST: ${POSTGRES_HOST}
PG_HOST_PORT: ${PG_HOST_PORT}
ALPHAVANTAGE_API_KEY: ${ALPHAVANTAGE_API_KEY}
ports:
- 6789:6789
volumes:
- ./workflow:/home/src/default_repo/workflow
depends_on:
- postgres
command: mage start magic
restart: on-failure
postgres:
image: postgres:latest
restart: on-failure
container_name: postgres-magic
env_file:
- .env
ports:
- 5433:5433
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin-magic
restart: always
ports:
- "8080:80"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: 12345
depends_on:
- postgres