forked from deniswoliveira/mage-ai-marvel-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.01 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
version: '3'
services:
postgres-db:
image: postgres:13-alpine3.17
build:
context: database
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=mage
- PG_DATA=/var/lib/postgresql/data/pgdata
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- mage_ai-networks
mage-app:
hostname: mage_ai
image: mageai/mageai:latest
build:
context: .
command: mage start marvel_api
environment:
- ENV=dev
- MAGE_DATABASE_CONNECTION_URL=postgresql+psycopg2://postgres:postgres@postgres-db:5432/mage
env_file:
- aws-variables.env
ports:
- 6789:6789
volumes:
- ./marvel_api:/home/src
restart: on-failure:5
stdin_open: true # used for interactive debugging
tty: true # used for interactive debugging
networks:
- mage_ai-networks
networks:
mage_ai-networks:
driver: bridge
volumes:
pgdata:
driver: local