This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
65 lines (60 loc) · 1.67 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
version: '3.5'
name: dr-trottoir
services:
postgres:
container_name: dr-trottoir-postgres
hostname: dr-trottoir-postgres
image: postgres
environment:
POSTGRES_DB: main
POSTGRES_USER: admin
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_PASSWORD: password
volumes:
- './volumes/postgres:/var/lib/postgresql/data'
network_mode: "host"
user: 1000:1000
api:
container_name: dr-trottoir-api
hostname: dr-trottoir-api
build:
dockerfile: ./Dockerfile
context: .
target: "api_production"
network_mode: "host"
environment:
DATABASE_URL: "postgresql://admin:password@localhost:5432/main?schema=public"
FILE_STORAGE_DIRECTORY: "/files"
CORS: "http://localhost"
DISABLE_AUTH: "false"
ERROR_LOGGER: "true"
restart: always
volumes:
- './volumes/files:/files'
user: 1000:1000
web:
container_name: dr-trottoir-web
hostname: dr-trottoir-web
build:
dockerfile: ./Dockerfile
context: .
target: "web_production"
args:
VUE_APP_API_SERVER_ADDRESS: "http://localhost:8080/"
VUE_APP_IMGPROXY_SERVER_ADDRESS: "http://localhost:8081"
network_mode: "host"
imgproxy:
container_name: dr-trottoir-imgproxy
hostname: dr-trottoir-imgproxy
image: darthsim/imgproxy
environment:
IMGPROXY_LOCAL_FILESYSTEM_ROOT: /images/.
IMGPROXY_ALLOWED_SOURCES: local://
IMGPROXY_DEVELOPMENT_ERRORS_MODE: 'true'
IMGPROXY_MAX_SRC_RESOLUTION: 100
IMGPROXY_JPEG_PROGRESSIVE: 'true'
IMGPROXY_BIND: ":8081"
volumes:
- './volumes/files:/images:ro'
network_mode: "host"
user: 1000:1000