-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yaml
59 lines (56 loc) · 1.32 KB
/
docker-compose.dev.yaml
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
version: '3.8'
services:
server:
build:
context: './'
dockerfile: './Dockerfile.dev'
args:
# Use PWD so that files in stdout are clickable
APP_DIR: '${PWD}'
env_file: '.env'
environment:
DATABASE_URL: 'postgres://postgres:password@db/virginity-bot'
STORAGE_S3_HOST: 'object-storage'
STORAGE_S3_PORT: '9000'
STORAGE_S3_SSL: 'false'
STORAGE_S3_REGION: 'local'
volumes:
- './:${PWD}'
ports:
- '9229:9229'
networks:
- 'virgin-net'
depends_on:
- 'db'
- 'object-storage'
db:
image: 'docker.io/library/postgres:15'
environment:
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'password'
POSTGRES_DB: 'virginity-bot'
volumes:
- 'virginity-bot-db:/var/lib/postgresql/data'
ports:
- '5432:5432/tcp'
networks:
- 'virgin-net'
object-storage:
image: 'quay.io/minio/minio:latest'
command: 'server /data --console-address ":9001"'
environment:
MINIO_ROOT_USER: 'admin'
MINIO_ROOT_PASSWORD: 'password'
MINIO_REGION: 'local'
volumes:
- 'virginity-bot-object-storage:/data'
ports:
- '9000:9000'
- '9001:9001'
networks:
- 'virgin-net'
networks:
virgin-net:
volumes:
virginity-bot-db:
virginity-bot-object-storage: