-
Notifications
You must be signed in to change notification settings - Fork 219
/
docker-compose.yml
43 lines (43 loc) · 1.25 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
services:
magic-platform:
env_file:
- .env.dev
build:
context: .
command: /app/run_app.sh mage start $PROJECT_NAME
ports:
- 6789:6789
volumes:
# Mount your local codebase to the container.
- .:/$MAGE_CODE_PATH
# Store the data output on local machine to easily debug (optional).
- ~/.mage_data:/$MAGE_CODE_PATH/mage_data
# Initial credentials to create an IAM user with limited permissions for deployment.
- ~/.aws:/root/.aws
# Local machine’s SSH keys to pull and push to your GitHub repository.
- ~/.ssh:/root/.ssh:ro
# Local machine’s GitHub configs
- ~/.gitconfig:/root/.gitconfig:ro
restart: on-failure:5
networks:
- app-network
depends_on:
- magic-database
stdin_open: true # used for interactive debugging
tty: true # used for interactive debugging
magic-database:
image: pgvector/pgvector:0.6.0-pg16
env_file:
- .env.dev
ports:
- 5432:5432
volumes:
- ~/.postgres/data:/var/lib/postgresql/data
# Custom database initialization scripts (optional).
- ./scripts/database:/docker-entrypoint-initdb.d
restart: always
networks:
- app-network
networks:
app-network:
driver: bridge