-
Notifications
You must be signed in to change notification settings - Fork 57
/
docker-compose.yml
46 lines (40 loc) · 1.29 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
version: '3.9'
services:
amida-api:
build:
context: .
volumes:
# Mounts the project directory on the host to /app inside the container,
# allowing you to modify the code without having to rebuild the image.
- .:/app
# Just specify a path and let the Engine create a volume.
# Data present in the base image at the specified mount point will be copied
# over to the new volume upon volume initialization.
# node_modules from this new volume will be used and not from your local dev env.
- /app/node_modules/
# Expose ports [HOST:CONTAINER}
ports:
- "4000:4000"
# Set environment variables from this file
env_file:
- .env
# Overwrite any env var defined in .env file (if required)
environment:
- PG_DB=api
- PG_PORT=5432
- PG_HOST=amida-db
- PG_USER=api
- PG_PASSWD=boilerplate
- DEBUG=amida-api-boilerplate:*
# Link to containers in another service.
# Links also express dependency between services in the same way as depends_on,
# so they determine the order of service startup.
links:
- amida-db
amida-db:
image: "postgres:15.2-alpine3.17"
ports:
- "5432:5432"
environment:
- POSTGRES_USER=api
- POSTGRES_PASSWORD=boilerplate