-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (46 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
52 lines (46 loc) · 1.05 KB
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
services:
postgres:
image: postgres:15
container_name: archflow_postgres
restart: always
environment:
POSTGRES_USER: archflow
POSTGRES_PASSWORD: password
POSTGRES_DB: archflow
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
migrate:
image: migrate/migrate
container_name: archflow_migrate
depends_on:
- postgres
volumes:
- ./backend/migrations:/migrations
command:
[
"-path", "/migrations",
"-database", "postgres://archflow:password@postgres:5432/archflow?sslmode=disable",
"up"
]
backend:
build: ./backend
container_name: archflow_backend
ports:
- "8080:8080"
depends_on:
- postgres
- migrate
environment:
DATABASE_URL: postgres://archflow:password@postgres:5432/archflow?sslmode=disable
frontend:
build: ./frontend
container_name: archflow_frontend
restart: always
depends_on:
- backend
ports:
- "3000:3000"
volumes:
postgres_data: