-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
55 lines (51 loc) · 1.29 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
55 lines (51 loc) · 1.29 KB
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
version: "3.8"
services:
server:
user: "${UID}:${GID}"
build:
context: ./server
dockerfile: Dockerfile.dev
volumes:
- ./server:/usr/src/app
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
networks:
- gitmirrors
environment:
SERVER_PORT: ${SERVER_PORT}
POSTGRES_HOST: ${POSTGRES_HOST}
POSTGRES_PORT: ${POSTGRES_PORT}
ROCKET_ENV: ${ROCKET_ENV}
ROCKET_ADDRESS: ${ROCKET_ADDRESS}
DATABASE_URL: ${DATABASE_URL}
CORS_URL: ${CORS_URL}
web-client:
user: "${UID}:${GID}"
build:
context: ./web-client
dockerfile: Dockerfile.dev
volumes:
- ./web-client:/usr/src/app
ports:
- "${WEB_CLIENT_PORT}:${WEB_CLIENT_PORT}"
networks:
- gitmirrors
environment:
NUXT_PUBLIC_API_URL: ${NUXT_PUBLIC_API_URL}
NUXT_PUBLIC_SERVER_API_URL: ${NUXT_PUBLIC_SERVER_API_URL}
db:
image: postgres:14.4
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
volumes:
- ./pg_data:/var/lib/postgresql/data
networks:
- gitmirrors
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST_AUTH_METHOD=${POSTGRES_HOST_AUTH_METHOD}
networks:
gitmirrors:
driver: bridge