-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
43 lines (39 loc) · 1.24 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
version: '3'
services:
db:
image: postgres:13-alpine
container_name: crm-pilates-postgres
environment:
POSTGRES_USER: crm-pilates
POSTGRES_PASSWORD: example
ports:
- "5432:5432"
volumes:
- "./volumes/db/data:/var/lib/postgresql/data"
adminer:
image: adminer
restart: always
ports:
- "8080:8080"
crm-pilates-api:
image: crm-pilates-api:latest
container_name: crm-pilates-api
ports:
- "8081:8081"
environment:
EVENT_STORE_PATH: ./local.persistent/event/event_store.db
CORS_ALLOW_ORIGINS: "*"
DATABASE_URL: postgresql://crm-pilates:example@crm-pilates-postgres:5432/crm-pilates
SECRET_KEY: "683ed7b9228d007f40b60de125fbb35681e94bdd23c45e2e0394fe470e1d55bb"
SECRET_ENCRYPTION_KEY: "5gA4NPnTXIr_m096D3JzZF8b3ZFLpoEk4RYwjKg-FRc="
# volumes:
# - "./crm_pilates/command:/crm-pilates/crm_pilates/command"
# - "./crm_pilates/domain:/crm-pilates/crm_pilates/domain"
# - "./crm_pilates/event:/crm-pilates/crm_pilates/event"
# - "./crm_pilates/infrastructure:/crm-pilates/crm_pilates/infrastructure"
# - "./crm_pilates/web:/crm-pilates/crm_pilates/web"
build:
context: .
target: development
depends_on:
- db