-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-docker-compose.yml
More file actions
47 lines (43 loc) · 889 Bytes
/
dev-docker-compose.yml
File metadata and controls
47 lines (43 loc) · 889 Bytes
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
version: "3.9"
services:
frontend:
build:
context: ./frontend
dockerfile: dev.Dockerfile
ports:
- "3000:3000"
volumes:
- ./frontend:/app
depends_on:
- backend
container_name: web
backend:
image: cosmtrek/air
working_dir: /go/app/backend
ports:
- "8080:8080"
volumes:
- ./backend:/go/app/backend
depends_on:
- database
container_name: api
nginx:
image: nginx
ports:
- "5000:5000"
restart: always
depends_on:
- frontend
volumes:
- ./nginx/conf/:/etc/nginx/conf.d/:ro
# - ./nginx.conf/:/etc/nginx/nginx.conf/:ro
container_name: nginx
database:
image: postgres
env_file:
- ./database.env
volumes:
- ./migration.sql:/docker-entrypoint-initdb.d/migration.sql
ports:
- "5432:5432"
container_name: postgres