-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (49 loc) · 1 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
44
45
46
47
48
49
50
51
52
services:
bot:
build:
context: .
dockerfile: Dockerfile
target: dev
container_name: bot
depends_on:
- postgres
# Get environment variables from .env file
env_file:
- path: ./.env
volumes:
- .:/app
# command: ["./bin/bot"]
# For development we just run air
command: ["air", "-c", ".air-bot.toml"]
restart: always
web:
build:
context: .
dockerfile: Dockerfile
target: dev
container_name: web
depends_on:
- bot
env_file:
- path: ./.env
volumes:
- .:/app
ports:
- "8080:8080"
# command: ["./bin/web"]
# For development we just run air
command: ["air"]
restart: always
postgres:
image: postgres:16
container_name: postgres
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: