-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (51 loc) · 1.12 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
48
49
50
51
52
53
54
55
56
57
version: "3.8"
services:
api:
build:
context: .
dockerfile: docker/dev/Dockerfile
container_name: cargopulse-api
volumes:
- .:/app:z
restart: always
env_file:
- ./.env
ports:
- "8000:8000"
depends_on:
- db
networks:
- cargopulse
db:
image: google/cloud-sdk:470.0.0-emulators
container_name: cargopulse-db
command: gcloud beta emulators datastore start --host-port=0.0.0.0:8081 --data-dir=/opt/data --quiet
expose:
- "8081"
environment:
- CLOUDSDK_CORE_PROJECT=dummy-project
volumes:
- cargopulse_db_data:/opt/data
env_file:
- ./.env
networks:
- cargopulse
# db:
# image: postgres:15.6-alpine3.19
# container_name: cargopulse-db
# restart: always
# environment:
# - POSTGRES_DB=cargopulse
# - POSTGRES_USER=cargopulse
# - POSTGRES_PASSWORD=cargopulse
# volumes:
# - cargopulse_db_data:/var/lib/postgresql/data
# ports:
# - "5432:5432"
# networks:
# - cargopulse
volumes:
cargopulse_db_data:
networks:
cargopulse:
driver: bridge