-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (40 loc) · 980 Bytes
/
docker-compose.yaml
File metadata and controls
43 lines (40 loc) · 980 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
version: '3.9'
services:
pgsql:
image: postgres:16.2
restart: always
ports:
- "${DB_PORT-5432}:5432"
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
volumes:
- ./data:/var/lib/postgresql/data:rw
- ./database/seed/00.sql:/docker-entrypoint-initdb.d/00.sql:rw
- ./database/seed/reset.sql:/docker-entrypoint-initdb.d/reset.sql:rw
networks:
- hackathon-network
server:
build:
context: .
container_name: go_thumb_processor_worker_api
restart: always
links:
- pgsql:pgsql
ports:
- "8082:8080"
depends_on:
pgsql:
condition: service_started
environment:
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_PORT=${DB_PORT}
- DB_NAME=${DB_NAME}
- DB_HOST=${DB_HOST}
networks:
- hackathon-network
networks:
hackathon-network:
driver: bridge