-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
50 lines (47 loc) · 1.12 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
services:
webapp:
build:
context: .
dockerfile: docker/webapp/Dockerfile
target: dev
environment:
ASPIRECLOUD_ADMIN_API_URL: ${ASPIRECLOUD_ADMIN_API_URL}
ASPIRECLOUD_ADMIN_API_KEY: ${ASPIRECLOUD_ADMIN_API_KEY}
ports:
- ${LOCAL_HTTP_PORT:-8199}:80
volumes:
- .:/app
networks:
traefik: ~
app-net: ~
aspire-net:
aliases:
- 'sync.aspiredev.org'
labels:
- "traefik.enable=true"
- "traefik.http.routers.ap-sync.rule=Host(`sync.aspiredev.org`)"
- "traefik.http.routers.ap-sync-https.rule=Host(`sync.aspiredev.org`)"
- "traefik.http.routers.ap-sync-https.tls=true"
postgres:
image: postgres:latest
environment:
- POSTGRES_PASSWORD=password
- PGDATA=/opt/pgdata
- POSTGRES_DB=aspiresync
ports:
- "${LOCAL_POSTGRES_PORT:-15432}:5432"
volumes:
- pgdata:/opt/pgdata
networks:
app-net: ~
aspire-net:
aliases:
- 'db.sync.aspiredev.org'
networks:
app-net: ~
aspire-net:
external: true
traefik:
external: true
volumes:
pgdata: ~