-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
66 lines (60 loc) · 1.45 KB
/
docker-compose-dev.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
version: "3.8"
services:
postgres_db:
container_name: dev_pg_db
image: postgres:13-alpine
environment:
- POSTGRES_USER=${MASTER_DB_USER}
- POSTGRES_PASSWORD=${MASTER_DB_PASSWORD}
- POSTGRES_DB=${MASTER_DB_NAME}
volumes:
- dev_postgres_data:/var/lib/postgresql/data/
restart: always
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
ports:
- "5050:80"
environment:
- PGADMIN_DEFAULT_PASSWORD=root
logging:
driver: none
volumes:
- pgadmin_data:/var/lib/pgadmin
server:
container_name: dev_go_server
build:
context: .
dockerfile: Dockerfile-dev
ports:
- ${SERVER_PORT}:${SERVER_PORT}
depends_on:
- postgres_db
links:
- postgres_db:postgres_db
volumes:
- .:/app
- app_logs:/app_logs
restart: always
frontend-builder:
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend:/app # Mount the build directory to the container
command: sh -c "GOARCH=wasm GOOS=js go build -o web/app.wasm && go build -o frontend && ./frontend"
nginx:
build: "./nginx"
ports:
- "80:80"
depends_on:
- server
volumes:
- ./frontend:/usr/share/nginx/html/frontend
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
volumes:
dev_postgres_data:
pgadmin_data:
app_logs: