Skip to content

Commit 6c41c36

Browse files
committed
fixed docker compose anchors
1 parent 614431e commit 6c41c36

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

docker-compose.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
x-defaults: &defaults
22
restart: unless-stopped
3-
environment:
4-
- NUM_WORKERS=${NUM_WORKERS:-1}
5-
- CALLBACK_SERVER=${CALLBACK_SERVER:-""}
3+
environment: &environment
4+
NUM_WORKERS: ${NUM_WORKERS:-1}
5+
CALLBACK_SERVER: ${CALLBACK_SERVER:-""}
66
deploy:
77
resources:
88
limits:
9-
memory: 2G
9+
memory: 4G
1010
# Comment out if no GPU is available.
1111
reservations:
1212
devices:
@@ -71,20 +71,22 @@ services:
7171
<<: *defaults
7272

7373
stanza-alpino-conll02:
74+
<<: *defaults
7475
image: instituutnederlandsetaal/galahad-taggers-stanza:$CPU_GPU-$VERSION
7576
environment:
76-
- STANZA_MODEL=alpino
77+
<<: *environment
78+
STANZA_MODEL: alpino
7779
ports:
7880
- 8121:8080
79-
<<: *defaults
8081

8182
stanza-lassysmall-wikiner:
83+
<<: *defaults
8284
image: instituutnederlandsetaal/galahad-taggers-stanza:$CPU_GPU-$VERSION
8385
environment:
84-
- STANZA_MODEL=lassysmall
86+
<<: *environment
87+
STANZA_MODEL: lassysmall
8588
ports:
8689
- 8122:8080
87-
<<: *defaults
8890

8991
flair:
9092
image: instituutnederlandsetaal/galahad-taggers-flair:$CPU_GPU-$VERSION

0 commit comments

Comments
 (0)