-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (71 loc) · 1.63 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
api:
container_name: blue-carbon-cost-api
environment:
DB_HOST: database
build:
context: .
dockerfile: api/Dockerfile
ports:
- "4000:4000"
env_file:
- ./shared/config/.env
command: ["pnpm", "api:dev"]
networks:
- 4-growth-docker-network
depends_on:
- database
admin:
container_name: blue-carbon-cost-admin
environment:
DB_HOST: database
build:
context: .
dockerfile: admin/Dockerfile
ports:
- "1000:1000"
networks:
- 4-growth-docker-network
depends_on:
- database
client:
build:
context: .
dockerfile: client/Dockerfile
args:
NEXT_PUBLIC_API_URL: "http://api:4000"
NEXTAUTH_SECRET: "mysupersecret"
NEXTAUTH_URL: "http://client:3000/auth/api"
ports:
- "3000:3000"
networks:
- 4-growth-docker-network
# Used to test the integration between the client, api and backoffice.
# Some dependencies are disabled as we typically use nginx and database containers only.
nginx:
image: nginx
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
ports:
- 80:80
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- database
# - client
# - api
# - admin
database:
image: postgis/postgis:16-3.4
container_name: blue-carbon-cost-db
environment:
POSTGRES_USER: blue-carbon-cost
POSTGRES_PASSWORD: blue-carbon-cost
POSTGRES_DB: blc
ports:
- "5432:5432"
networks:
- 4-growth-docker-network
networks:
4-growth-docker-network:
driver: bridge